Bug 3525 – Override keyword & indirect inheritance of many interfaces
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-11-19T10:07:52Z
Last change time
2019-05-09T23:21:43Z
Assigned to
No Owner
Creator
Tomasz SowiĆski
Comments
Comment #0 by tomeksowi — 2009-11-19T10:07:52Z
interface IB1 {
int ta();
}
interface IB2 {
int inna();
}
interface IA : IB1, IB2 { }
class A : IA {
override int ta() { return 5; }
override int inna() { return 1; }
}
It doesn't compile:
Error: function hello.A.inna does not override any function
The workaround is not to use the override keyword.
It may be related to bug 2525.
Comment #1 by yebblies — 2012-02-20T03:36:40Z
Seems to work with dmd 2.058 and 1.072
Comment #2 by dlang-bot — 2019-05-09T23:21:43Z
dlang/phobos pull request #6902 "Issue 3525 was fixed" was merged into master:
- e2ab79408bd176ad438928faabcd76ee9e9bdbcc by Nicholas Wilson:
Issue 3525 was fixed
https://github.com/dlang/phobos/pull/6902