mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 23:03:14 +01:00
Fixed bug #191 by rewriting DtoConstArrayInitializer, patch unfortunately caused regressions, hopefully this doesn't :P
This commit is contained in:
10
tests/mini/arrayinit2.d
Normal file
10
tests/mini/arrayinit2.d
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user