[Issue 14182] AA with pointer key can't find key (regression)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Feb 18 17:52:04 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14182

--- Comment #4 from Timothee Cour <timothee.cour2 at gmail.com> ---
there's 1 more thing in the bug report: why both are true?

assert(is(typeof(map)==int[const(int)*]));
assert(is(typeof(map)==int[int*]));

furthermore shouldn't we disallow this:
int[int*]map;
and spit out a compiler error (or deprecation for now) saying that the type
should be:
int[const(int)*]map;

--


More information about the Digitalmars-d-bugs mailing list