Overriding final functions
Ary Manzana
ary at esperanto.org.ar
Mon Mar 19 18:33:14 PDT 2007
The following code:
class X {
public final void bla() {
}
}
class Y : X {
public override void bla() {
}
}
gives:
main.d(10): function main.Y.bla function bla does not override any
I'd expect the error to be:
main.d(10): function main.Y.bla cannot override final function main.X.bla
(which I do get if I put the "final" keyword in bla on class Y)
Am I misunderstanding something or this is a bug?
More information about the Digitalmars-d-learn
mailing list