view tests/mini/classes8.d @ 982:b5e1797e9557

Add explicit paths to revisions.* to unbreak out-of-source build.
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 19 Feb 2009 00:50:35 +0100
parents 1bb99290e03a
children
line wrap: on
line source

class A {
    int i;
    int l;
    this(bool b,bool b2=false) {
        if (b) this = new B;
        i = 4;
        if (b2) this = new C;
        l = 64;
    }
}
class B : A{
    this() {
        super(false);
    }
}
class C : A{
    this() {
        super(false);
    }
}
void main() {
}