https://issues.dlang.org/show_bug.cgi?id=16484
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from [email protected] --- Without phobos: ---- struct Nullable(T) { T x; alias x this; } void foo(T)(Nullable!T value) {} void foo()(int i) { assert(false); /* hit */ } void main() { foo(Nullable!int()); } ---- The second overload being selected is surprising, because it involves an implicit conversion whereas the first overload would be an exact match. I can't find anything in the spec about how IFTI interacts with overloading. --
