[Issue 16318] inherit from interface via abstract class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 12 21:59:57 UTC 2017


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

ponce <aliloko at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aliloko at gmail.com

--- Comment #6 from ponce <aliloko at gmail.com> ---
I lost a lot of time on that issue


---------------------

interface A
{

    void lol();
}

abstract class B : A
{
}

class C : B
{
   override void lol()
   {
   }
}

----------------------

Error: function f891.C.lol does not override any function, did you mean to
override 'f891.A.lol'?


----------------------


It's very unclear and unpexpected that the proper fix is just to remove the
"override" keyword.

--


More information about the Digitalmars-d-bugs mailing list