[Issue 17462] Order of base interfaces affects compiler behavior

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 15 18:55:41 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=17462

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at erdani.com

--- Comment #2 from Andrei Alexandrescu <andrei at erdani.com> ---
FWIW the Java code works without requiring the additional implementation:

interface Marker {}
interface Foo { void foo(); }

interface FooMarked extends Foo, Marker {}
interface MarkedFoo extends Marker, Foo  {}

class Base implements Foo { public void foo() {} }

class Derived1 extends Base implements FooMarked {} // Inherit Base.foo
class Derived2 extends Base implements MarkedFoo {} // Inherit Base.foo

--


More information about the Digitalmars-d-bugs mailing list