[Issue 15359] New: DMD incorrectly identifies type of multidimensional array

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 18 13:02:38 PST 2015


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: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

-----
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[]
------

--


More information about the Digitalmars-d-bugs mailing list