Fixed bug #191 by rewriting DtoConstArrayInitializer, patch unfortunately caused regressions, hopefully this doesn't :P

This commit is contained in:
Tomas Lindquist Olsen
2009-02-01 23:30:36 +01:00
parent 01f19c466c
commit e6ef3ecf15
2 changed files with 84 additions and 101 deletions

10
tests/mini/arrayinit2.d Normal file
View File

@@ -0,0 +1,10 @@
// bug #191
int[3] a = [0: 0, 2: 42, 1: 1];
void main()
{
assert(a[0] == 0);
assert(a[1] == 1); // fails!
assert(a[2] == 42);
}