No 'is not implemented' message with final?

Namespace rswhite4 at googlemail.com
Tue Sep 10 13:21:42 PDT 2013


Code:
----
import std.stdio;

interface A {
public:
	final void bar();
}

class B : A {
	
}

void main()
{
	
}
----

No message.
But:

----
import std.stdio;

interface A {
public:
	void bar();
}

class B : A {
	
}

void main()
{
	
}
----

Gives the correct error message:
Error: class B interface function 'void bar()' is not implemented

Bug or feature?


More information about the Digitalmars-d-learn mailing list