[Issue 5525] Eponymous templates should allow for overloaded eponymous members
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 22 04:28:14 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5525
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2012-02-22 04:28:11 PST ---
In dmd2.058, eponymous template hides internal names (fixing bug 4675).
But eponymous overload set isn't still allowed.
Workaround:
template foo( T ) {
T foox( T t ) {
return t;
}
T foox( T t, T u ) {
return t + u;
}
alias foox foo; // bundle overloads as eponymous member.
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list