Interface inheritance
GGB via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 5 20:38:27 PDT 2017
On Tuesday, 5 September 2017 at 21:45:51 UTC, jmh530 wrote:
> 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
> }
Thanks, I think that explains it, although neither the
documentation nor the compiler messages make things clear.
More information about the Digitalmars-d
mailing list