Inferred return types

bearophile bearophileHUGS at lycos.com
Fri Jun 29 12:33:01 PDT 2012


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


More information about the Digitalmars-d mailing list