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

           Summary: Wrong insertion of Tuple in associative array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-05-08 04:39:02 PDT ---
import std.stdio: writeln;
import std.typecons: Tuple;
void main () {
    alias Foo = Tuple!string;
    int[Foo] aa;
    auto ka = Foo("foo".idup);
    aa[ka] = 1;
    auto kb = Foo("foo".idup);
    aa[kb] = 2;
    aa.writeln;
}


Output dmd 2.063beta:

[Tuple!(string)("foo"):1, Tuple!(string)("foo"):2]


Expected output:

[Tuple!(string)("foo"):2]

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

Reply via email to