[Issue 12111] Cannot pull a function template into an overload set
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 8 13:22:54 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12111
--- Comment #1 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2014-02-08 13:22:53 PST ---
Workaround:
------------------------------
module a;
import b;
alias foo = b.foo;
void foo(T)(T t) if(is(T==char)) {}
void foo(T)(T t) if(is(T==int)) { b.foo(t); } // Workaround for #12111
void main() { foo(1); }
------------------------------
module b;
void foo(T)(T t) if(is(T==int)) {}
------------------------------
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list