diff test/bug7.d @ 34:4648206ca213 trunk

[svn r38] * resizing dynamic arrays support * throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
author lindquist
date Tue, 09 Oct 2007 02:50:00 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/bug7.d	Tue Oct 09 02:50:00 2007 +0200
@@ -0,0 +1,14 @@
+module bug7;
+
+class love { }
+void bug() {
+    love[] child;
+    child.length=1;
+    assert(child[0] is null);
+    child[0]=null;
+    assert(child[0] is null);
+}
+void main()
+{
+    bug();
+}