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

--- Comment #0 from 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:
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:
------- You are receiving this mail because: -------

Reply via email to