[Issue 9703] New: Failed matrix literal assignment error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 12 10:54:34 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9703
Summary: Failed matrix literal assignment error message
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-03-12 10:54:33 PDT ---
void main() {
int[2][3] a1 = [[1], [2], [3]];
}
DMD 2.063alpha gives:
temp.d(2): Error: cannot implicitly convert expression ([[1], [2], [3]]) of
type int[][] to int[]
I think that error message should be improved, because I am not asking it to be
converted to a 1D array.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list