Interface inheritance

jmh530 via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 5 14:44:07 PDT 2017


On Tuesday, 5 September 2017 at 20:15:44 UTC, GGB wrote:
> What are the rules regarding one interface (not class, but 
> interface) inheriting from another?
>
> Nothing in the documentation seems to refer to interface 
> inheritance, only to class inheritance.
>
> I have tried to do some code with this, and the compiler does 
> not complain about one interface inhering from another, but it 
> does give some strange results when the child interface tries 
> to implement an abstract method in the parent interface.
>

This is related to Issue 2538:
https://issues.dlang.org/show_bug.cgi?id=2538

The spec has more information on interfaces here
https://dlang.org/spec/interface.html



More information about the Digitalmars-d mailing list