[Issue 22232] New: implementing interface function by inheriting from other class
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Aug 22 12:35:56 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22232
          Issue ID: 22232
           Summary: implementing interface function by inheriting from
                    other class
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: animuspexus at protonmail.com
asked at Discord and at Forum, but nobody could tell if this is a bug:
```D
interface Int
{
    void coolFunc();
}
class C1
{
    void coolFunc()
    {
        return;
    }
}
class C2 : C1, Int
{
}
void main()
{
    auto c = new C2;
}
```
dmd ends with error:
t.d(14): Error: class t.C2 interface function void coolFunc() is not
implemented
--
    
    
More information about the Digitalmars-d-bugs
mailing list