view test/classes8.d @ 281:f5f97ca47b33 trunk

[svn r302] Make HaltExps and assert(0) generate an assert message again instead of using llvm's trap intrinsic.
author ChristianK
date Fri, 20 Jun 2008 23:38:51 +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() {
}