Bug 18574 – Unclear error message when trying to inherit from multiple classes
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-07T22:23:42Z
Last change time
2018-03-10T04:34:50Z
Assigned to
No Owner
Creator
monkeyworks12
Comments
Comment #0 by monkeyworks12 — 2018-03-07T22:23:42Z
class Test: Foo, Bar, Baz
{
}
class Foo {}
class Bar {}
class Baz {}
Error: class `Test` base type must be interface, not Bar
Error: class `Test` base type must be interface, not Baz
I thought this error message used to be a lot better; along the lines of "D does not support multiple inheritance. Use interfaces instead." It'd be nice if it was changed to be clearer about what the error is.
Comment #1 by github-bugzilla — 2018-03-10T04:34:49Z