annotate tests/mini/classes8.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/classes8.d@37a4fdab33fc
children
rev   line source
lindquist@15 1 class A {
lindquist@15 2 int i;
lindquist@15 3 int l;
lindquist@15 4 this(bool b,bool b2=false) {
lindquist@15 5 if (b) this = new B;
lindquist@15 6 i = 4;
lindquist@15 7 if (b2) this = new C;
lindquist@15 8 l = 64;
lindquist@15 9 }
lindquist@15 10 }
lindquist@15 11 class B : A{
lindquist@15 12 this() {
lindquist@15 13 super(false);
lindquist@15 14 }
lindquist@15 15 }
lindquist@15 16 class C : A{
lindquist@15 17 this() {
lindquist@15 18 super(false);
lindquist@15 19 }
lindquist@15 20 }
lindquist@15 21 void main() {
lindquist@15 22 }