[Issue 2252] Sequence of super interfaces matters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 29 17:04:38 PDT 2008


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





------- Comment #1 from 2korden at gmail.com  2008-07-29 19:04 -------
The following example has no workaround:

import std.stdio;

interface I1 {
    void foo1();
}

interface I2 {
    void foo2();
}

interface I3 : I1, I2 {
    void bar();
}

class C1 : I1, I2 {
    void foo1() { writefln("foo1"); }
    void foo2() { writefln("foo2"); }
}

class C2 : C1, I3 {
    void bar() { writefln("bar"); }
}

void main() {
        C2 c2 = new C2();
        c2.foo1();
        c2.foo2();
        c2.bar();
}


-- 



More information about the Digitalmars-d-bugs mailing list