[Issue 12255] Regression: opCmp requirement for AAs breaks code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 4 10:29:21 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12255
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #6 from bearophile_hugs at eml.cc ---
(In reply to Kenji Hara from comment #5)
> https://github.com/D-Programming-Language/dmd/pull/3711
Currently:
auto s1 = "he";
auto s2 = "llo";
void main() {
import std.stdio, std.typecons;
alias Foo = Tuple!string;
int[Foo] aa;
auto f1 = Foo("hello");
auto f2 = Foo(s1 ~ s2);
aa[f1] = 1;
aa[f2] = 2;
aa.writeln;
}
Gives:
[Tuple!string("hello"):2, Tuple!string("hello"):1]
Is this patch going to help fix that?
--
More information about the Digitalmars-d-bugs
mailing list