[Issue 4281] New: AA literal problem with mutable array as key

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 6 05:03:26 PDT 2010


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


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


More information about the Digitalmars-d-bugs mailing list