view test/classes8.d @ 322:1aaf6ff7f685 trunk

[svn r343] Move object.di used for running dstress into separate directory.
author ChristianK
date Wed, 09 Jul 2008 17:02:55 +0200
parents 37a4fdab33fc
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() {
}