[Issue 19569] overload resolution not right?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 12 20:15:28 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19569
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #18 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Manu from comment #16)
> Oh wow... interesting.
> I think I have broken code floating around :/
>
> So, is the issue here that it's possible to emit 2 functions that have
> ambiguous distinction, but no compile error?
> If a nothrow function can call either one, then it probably shouldn't just
> pick one, but rather emit an ambiguous call error instead?
But it doesn't pick one randomly, it picks the "better one" which is the one
that is pure/@safe/nothrow/@nogc
--
More information about the Digitalmars-d-bugs
mailing list