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

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to