Interface final methods are erased by the overloads of a subclass
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 13 17:13:09 PDT 2016
On Thursday, 14 July 2016 at 00:02:25 UTC, pineapple wrote:
> I was surprised when this didn't work. What's the rationale? Is
> there any better workaround than renaming methods?
Looks like this:
http://dlang.org/hijack.html
Just add `alias foo = A.foo;` to B and it should work.
More information about the Digitalmars-d-learn
mailing list