http://d.puremagic.com/issues/show_bug.cgi?id=5448

           Summary: Array of AAs literal doesn't work
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-01-13 02:53:00 PST ---
This D2 program:

void main() {
    pragma(msg, typeof([[1: 2]]).stringof);
    int[int][] aaa = [[1: 2]];
}


DMD 2.051 prints:
int[int][]
test.d(3): Error: cannot use array to initialize int[int]
test.d(3): Error: cannot implicitly convert expression ([(__error)]) of type
int[int][] to int[int][]

So the literal seems correctly recognized.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to