[Issue 9999] Integer literal 0 and 1 should prefer integer type in overload resolution

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 11:47:08 PST 2015


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

--- Comment #13 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
(In reply to Denis Shelomovskij from comment #12)
> Also this issue has to terrible consequences:
* two terrible consequences

> 1. `f(bool)` is preferred over `f(T)(T)`

A workaround is to use `f(T : bool)(T)` specialization instead of `f(bool)`.

--


More information about the Digitalmars-d-bugs mailing list