auto return type inheritance not covariant
bearophile
bearophileHUGS at lycos.com
Wed Feb 2 16:21:03 PST 2011
iLewis:
> Maybe this has been brought up before, but i could find no previous submissions.
It looks like a bug fit for Bugzilla:
class Foo {
int fun1() { return 1; }
auto fun2() { return 1; }
auto fun3() { return 1; }
}
class Bar : Foo {
override auto fun1() { return 1; }
override int fun2() { return 1; }
override auto fun3() { return 1; }
}
void main() {}
Bye,
bearophile
More information about the Digitalmars-d-bugs
mailing list