[Issue 21883] New: poor error message when swapping order of base class and interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 30 16:54:04 UTC 2021


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

          Issue ID: 21883
           Summary: poor error message when swapping order of base class
                    and interface
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: destructionator at gmail.com

module test;

interface InterfaceA {
    void method();
}

class ClassA {
    string somefield;
    void method2() {}
}

class ClassB: InterfaceA, ClassA { // unhelpful error message
    void method() {}
}

--


More information about the Digitalmars-d-bugs mailing list