[Issue 12267] [REG 2.065] Using struct as AA key sometimes require opCmp
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 27 12:49:45 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12267
--- Comment #6 from Jacob Carlborg <doob at me.com> 2014-02-27 12:49:44 PST ---
(In reply to comment #5)
> Well, isn't this interesting.
>
> This compiles:
>
> struct T { int opCmp() { return 2; } }
>
> struct S {}
> int[S] aa;
>
>
> That is, it is enough to add an opCmp to ANY struct to unbreak compilation.
Haha, that's weird.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list