digitalmars.D.bugs - [Issue 15359] New: DMD incorrectly identifies type of
- via Digitalmars-d-bugs (25/25) Nov 18 2015 https://issues.dlang.org/show_bug.cgi?id=15359
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 puremagic.com Reporter: jack 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[] ------ --
Nov 18 2015