[Issue 14108] template object.get cannot deduce function from argument types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 20:06:52 PST 2015


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

Timothee Cour <timothee.cour2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timothee.cour2 at gmail.com

--- Comment #2 from Timothee Cour <timothee.cour2 at gmail.com> ---
>> OT: I'm not sure what the "1370" is.

bugzilla 1370


>>The type of b is int[string]. To access the AA, you have to use a key typed as `string`. Therefore using `a` typed char[] to access AA should be type mismatch error.
Honestly, dmd 2.066 has an IFTI regression that was not properly fixed. The
line b.get(a,1); has been correctly rejected until 2.065. So, it was an
"accepts-invalid bug only in 2.066 release.

But why can't a char[] be used here though? Seems to me it would be safe to
allow that?

--


More information about the Digitalmars-d-bugs mailing list