Final templated interface method not found

Andre via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 15 21:14:12 PDT 2015


Hi,

following coding shoud work, or?
It doesn't compile with v2.068.0.

Kind regards
André

interface IfStatement
{
	void execute();
	
	final void execute(T...)(T t)
	{
		execute();
	}
}

class Statement: IfStatement
{
	void execute(){}
}

void main()
{
	new Statement().execute(1,"Hello World");
}


More information about the Digitalmars-d-learn mailing list