Interface inheritance

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


On Tuesday, 5 September 2017 at 21:44:07 UTC, jmh530 wrote:
>
> 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

And here is a simpler example:

interface I1
{
     void A();
}

interface I2: I1
{
     final void A() { }
}

class B: I2
{
    //It is an error to declare this class either with A or 
without it
}



More information about the Digitalmars-d mailing list