[Issue 5448] New: Array of AAs literal doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 13 02:54:50 PST 2011


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


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list