mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-06-07 09:14:10 +02:00
[svn r38] * resizing dynamic arrays support
* throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
This commit is contained in:
14
test/bug7.d
Normal file
14
test/bug7.d
Normal file
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user