[Issue 2252] Sequence of super interfaces matters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 29 17:25:27 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2252





------- Comment #2 from 2korden at gmail.com  2008-07-29 19:25 -------
Just to make it more clear:
last example produces the following error message:
test.d(20): class test.C2 interface function I2.foo2 is not implemented

because of this line:
interface I3 : I1, I2 { /* ... */ }

I1 somehow shadows I2 and its implementation is not found in C2.

exchanging an interface declaration order:
interface I3 : I2, I1 { /* ... */ }

unhides I2 implementation but hides I1's one:
test.d(20): class test.C2 interface function I1.foo1 is not implemented.


-- 



More information about the Digitalmars-d-bugs mailing list