Jacob Carlborg:
Is that supposed to work?
If the D specs don't agree, then in this case I think the D specs need to be modified.
Second, it seems it's not possible to override a method with an inferred return type,
This seems a bug report fit for Bugzilla:
class Foo {
string foo() {
return "Foo.foo";
}
}
class Bar : Foo {
override /*string*/ foo() { // compiles un-commenting string
return "Bar.foo";
}
}
void main() {}
Bye,
bearophile
