mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-02 20:40:05 +02:00
[svn r68] Added support for multi-dimensional static arrays.
Several bugfixes to array support.
This commit is contained in:
10
test/multiarr3.d
Normal file
10
test/multiarr3.d
Normal file
@@ -0,0 +1,10 @@
|
||||
module multiarr3;
|
||||
|
||||
void main()
|
||||
{
|
||||
static int[2][2] arr = [[1,2],[3,4]];
|
||||
assert(arr[0][0] == 1);
|
||||
assert(arr[0][1] == 2);
|
||||
assert(arr[1][0] == 3);
|
||||
assert(arr[1][1] == 4);
|
||||
}
|
||||
Reference in New Issue
Block a user