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

Mariusz Gliwiński alienballance at gmail.com
Tue Aug 30 03:42:04 PDT 2011


Jonathan M Davis wrote:
> On Tuesday, August 30, 2011 08:57:53 Mariusz Gliwiński wrote:
>>[...]
>> <code>
>> interface Interface
>> {
>> void method(Interface);
>> }
>> class Class : Interface
>> {
>> void method(Class) {}
>> }
>> 
>> void main() {}
>> </code>
> 
> This particular example is not a bug. [...]

You're absolutely right, it's not symetric. Now i have to think a bit 
because i highly relied on this. I'm sorry for taking Your time.

Thanks,
Mariusz Gliwiński


More information about the Digitalmars-d mailing list