mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
* throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
15 lines
188 B
D
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();
|
|
}
|