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

           Summary: Associative array assignment with dstring keys breaks
                    lookup
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: justin.spahrsumm...@gmail.com


--- Comment #0 from Justin Spahr-Summers <justin.spahrsumm...@gmail.com> 
2010-06-17 01:34:22 CDT ---
void main () {
    int[dstring] foo;

    foo = [
        "hello"d : 5
    ];

    assert("hello"d in foo);
}

This assertion fails on dmd 2.047 on OS X. Using foo["hello"d] = 5; or changing
the key type to string works.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to