comparison 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
comparison
equal deleted inserted replaced
33:bc641b23a714 34:4648206ca213
1 module bug7;
2
3 class love { }
4 void bug() {
5 love[] child;
6 child.length=1;
7 assert(child[0] is null);
8 child[0]=null;
9 assert(child[0] is null);
10 }
11 void main()
12 {
13 bug();
14 }