module test; interface InterfaceA { void method(); } class ClassA { string somefield; void method2() {} } class ClassB: InterfaceA, ClassA { // unhelpful error message void method() {} }
@adamdruppe updated dlang/dmd pull request #12490 "Improve error message for base class followed by interface" fixing this issue: - fix issue #21883 https://github.com/dlang/dmd/pull/12490
dlang/dmd pull request #12490 "Improve error message for base class followed by interface" was merged into master: - c687dc9d70c55cf2ad0de6b74291fe3e119ed15a by Adam D. Ruppe: Improve error message for base class followed by interface The spec requires base class to be listed first, but if you flip it, the compiler complains about multiple inheritance instead of just hinting that you need to reorder your list. This makes the error message a little more user-friendly. fix issue #21883 https://github.com/dlang/dmd/pull/12490
*** Issue 21653 has been marked as a duplicate of this issue. ***