https://issues.dlang.org/show_bug.cgi?id=15359

          Issue ID: 15359
           Summary: DMD incorrectly identifies type of multidimensional
                    array
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

-----
void main() {
   int[5][2] data = [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]];
}
------

prints 

------
Error: cannot implicitly convert expression ([[0, 1], [2, 3], [4, 5], [6, 7],
[8, 9]]) of type int[][] to int[]
------

--

Reply via email to