[Issue 3706] delegates of interfaces with multiple inheritance fail

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 22 12:20:20 PDT 2010


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



--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-07-22 12:20:12 PDT ---
Here's a slightly reduced test case.
--------------
interface I{
    void h();
}
interface K{
    void f();
}

interface J:I,K {}

class A:J{
    void f(){ }
    void h(){ } 
}

void main(){
    auto a = new A();
    J b = a;
    K c = a;
    assert(&b.f == &c.f); // fails: &b.f returns &a.h.
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list