Summary: AA literal problem with mutable array as key
           Product: D
           Version: future
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-06-06 05:03:25 PDT ---
This D2 code seems correct:

void main() {
    int[int[]] aa = [[1]: 2];

But DMD v2.046 prints at compile-time:

test.d(2): comma expected separating array initializers, not :
test.d(2): semicolon expected, not '3'
test.d(2): found ']' when expecting ';' following 'statement'

See also Bug 4279

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to