[Issue 12386] Allow using derivatives of IFTI'd types in remaining arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 16 22:50:53 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12386
--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-17 07:50:51 EET ---
This doesn't work as one might expect:
void f(T, U=X!T)(T a, U b) {}
U will always be inferred from the type of b, overriding the default.
Valid workaround:
void f(T, U)(T a, U b) if(is(U==X!T)) {}
--
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