Thread overview
[Issue 18915] "Interface method not implemented" if interface reflects on implementing class
May 30, 2018
Basile B.
May 31, 2018
Simen Kjaeraas
Mar 21, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
May 30, 2018
https://issues.dlang.org/show_bug.cgi?id=18915

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #1 from Basile B. <b2.temp@gmx.com> ---
Is this supposed to work or is this a wrong diagnostic (type B not yet finished
when used in A)

--
May 31, 2018
https://issues.dlang.org/show_bug.cgi?id=18915

--- Comment #2 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
I'd prefer it to work. This is essentially the use case:

interface A
{
    import std.traits;
    static foreach (e; __traits(derivedMembers, B)) {
        static foreach (fn; MemberFunctionsTuple!(B, e)) {
            mixin("@(__traits(getAttributes, fn)) ReturnType!fn
"~e~"(Parameters!fn);");
        }
    }
}

class B : A
{
    void foo() { }
}

That is, we generate an interface based on a type, and derive that type from said interface. Since derivedMembers doesn't look at base classes and interfaces, this could possibly be made to work.

Related forum discussion: https://forum.dlang.org/post/dgzojfdiwsssflbnkwtk@forum.dlang.org

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=18915

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18915

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=18915

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17861

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--