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

           Summary: Associative arrays as associative array keys
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2012-01-26 04:52:07 PST ---
D2 code:


import std.stdio;
alias bool[int] IntSet;
void main() {
    int[IntSet] aa;
    aa[[1:true, 2:true]] = true;
    IntSet is1 = [1:true];
    is1[2] = true;
    aa[is1] = 2;
    writeln(aa);
}


Output:
[[1:true, 2:true]:1, [1:true, 2:true]:2]


Expected output:
[[1:true, 2:true]:2]


This bug is almost "major".
Related to bug 3789 ?

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

Reply via email to