Files
ldc/test/bug7.d
Tomas Lindquist Olsen 3db5b9bb98 [svn r38] * resizing dynamic arrays support
* throw is replaced with assert(0)
* catch is ignored
* better foreach support
* various bugfixes
2007-10-09 02:50:00 +02:00

15 lines
188 B
D

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();
}