interface function isn't implemented - was Re: DMD 0.170 release
Walter Bright
newshound at digitalmars.com
Tue Oct 17 12:19:23 PDT 2006
Chris Miller wrote:
>
> interface IFoo
> {
> void foo();
> }
>
> class Foo: IFoo
> {
> final void foo() { }
> }
>
> DMD 0.170 output:
> test.d(6): class test.Foo interface function IFoo.foo isn't implemented
>
> Is this really what should happen? I thought final could mean it's still
> virtual if it's an interface implementation function or overriding
> something from a base class, just that it cannot be overridden again.
It's a bug.
More information about the Digitalmars-d-announce
mailing list