method returning child, doesn't overrides declared method returning parent

Mariusz Gliwiński alienballance at gmail.com
Mon Aug 29 14:09:43 PDT 2011


<code>
interface Interface {
	Interface method();
}
class Class : Interface {
	override Class method() {}
}
</code>

DMD complains it isn't overriding. How should it be according to 
specification, and how about making it legal?


More information about the Digitalmars-d mailing list