www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18915] New: "Interface method not implemented" if interface

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

          Issue ID: 18915
           Summary: "Interface method not implemented" if interface
                    reflects on implementing class
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: simen.kjaras gmail.com

interface A
{
    import std.meta : AliasSeq;
    alias a = AliasSeq!(__traits(getMember, B, "foo"));
    void foo();
}

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

Gives this error message:
Error: class `B` interface function void foo() is not implemented

--
May 30 2018