Files
ldc/test/classes8.d
Tomas Lindquist Olsen 766fc30a30 [svn r19] * Added support for reassigning 'this' inside class constructors.
* Added preliminary support for UnrolledLoopStatement. That is foreach on a tuple.
2007-10-03 04:56:32 +02:00

23 lines
291 B
D

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() {
}