www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9703] New: Failed matrix literal assignment error message


           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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc

--- Comment #0 from bearophile_hugs 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: -------
Mar 12 2013