[Issue 9999] Integer literal 0 and 1 should prefer integer type in overload resolution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 25 16:13:54 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=9999
--- Comment #22 from deadalnix <deadalnix at gmail.com> ---
At the very least, 1 -> true should match as an implicit conversion, not an
exact match (in which case, one gets an overload resolution error rather than a
bug).
That would still be bad, but that would at least not be the opposite one what
anyone sensible expects.
--
More information about the Digitalmars-d-bugs
mailing list