[Issue 1728] alias hides mixin member func?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 11 04:19:39 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1728
------- Comment #6 from davidl at 126.com 2008-12-11 06:19 -------
But I can't accept that:
class B:A,mix
{
mixin mixtem;
void pr()
{
print("OK"); // this should call mixin member func
writefln("B");
}
}
works
while:
class B:A,mix
{
alias A.print print;
mixin mixtem;
void pr()
{
print("OK"); // this should call mixin member func
writefln("B");
}
}
doesn't work.
An alias shouldn't hide a func that I try to call.
--
More information about the Digitalmars-d-bugs
mailing list