[Issue 3525] New: Override keyword & indirect inheritance of many interfaces
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 19 10:07:53 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3525
Summary: Override keyword & indirect inheritance of many
interfaces
Product: D
Version: 2.036
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: tomeksowi at gmail.com
--- Comment #0 from Tomasz Sowiński <tomeksowi at gmail.com> 2009-11-19 10:07:52 PST ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list