[Issue 3500] Program behaves differently with -inline

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 12 10:29:59 PST 2009


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



--- Comment #1 from nfxjfg at gmail.com 2009-11-12 10:29:58 PST ---
D2 testcase.

import std.stdio;

class A {
    void x() {
        writefln("A::x()");
    }
}

class B : A {
    override void x() {
        writefln("B::x()");
    }

    private void do_x() {
        super.x();
    }
}

void main() {
    B b = new B();
    b.do_x();
}

-- 
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