view test/bug7.d @ 112:368547b1cbe6 trunk

[svn r116] Implemented the ClassInfo.destructor field.
author lindquist
date Thu, 22 Nov 2007 22:30:10 +0100
parents 4648206ca213
children
line wrap: on
line source

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