interface not able to use functions from base classes??

"Øivind" oivind.loe at gmail.com
Tue Dec 24 23:40:01 PST 2013


Why doesn't this work:

----

class A {
	int f(int x) {
		return x;
	}
}

interface I {
	int f(int x);
}

class B : A, I {
	
}

void main() {}

----

I get the following error with DMD 2.064.2:

/d122/f338.d(11): Error: class f338.B interface function 'int 
f(int x)' is not implemented



More information about the Digitalmars-d mailing list