digitalmars.D.bugs - [Issue 2525] New: override of function from abstract base class's interface
- d-bugmail puremagic.com Dec 19 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2525 Summary: override of function from abstract base class's interface Product: D Version: 1.038 Platform: Other OS/Version: Linux Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: diggory.hardy gmail.com interface I { void foo(); } abstract class A : I { } class B : A { override void foo () {} } The above code fails to compile: overrideBaseInterface.d(10): function overrideBaseInterface.B.foo does not override any function It looks to me like B.foo is overriding I.foo and hence the override keyword should be valid. --
Dec 19 2008








d-bugmail puremagic.com