[Issue 18915] New: "Interface method not implemented" if interface reflects on implementing class
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed May 30 08:39:34 UTC 2018
    
    
  
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 at puremagic.com
          Reporter: simen.kjaras at 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
--
    
    
More information about the Digitalmars-d-bugs
mailing list