[Issue 2525] New: override of function from abstract base class's interface
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 19 05:02:53 PST 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 at digitalmars.com
ReportedBy: diggory.hardy at 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.
--
More information about the Digitalmars-d-bugs
mailing list