[Issue 11157] base class member hides template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 20 03:34:55 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11157
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-20 22:34:48 EST ---
That's interesting. Would you still expect the template parameter to have
priority in the expanded case?
template Foo(int param)
{
class Foo : Base
{
int val()
{
return param; // <-- param refers to super.param
}
}
}
--
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