190
|
1 // $HeadURL$
|
|
2 // $Date$
|
530
|
3 // $Author$
|
190
|
4
|
|
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
|
402
|
6 // @date@ 2004-12-10
|
190
|
7 // @uri@ news:sr8p82-lu3.ln1@kuehne.cn
|
1485
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2528
|
190
|
9
|
528
|
10 // call to "this" before "super"-constructor
|
190
|
11
|
756
|
12 // __DSTRESS_ELINE__ 25
|
374
|
13
|
190
|
14 module dstress.nocompile.super_09;
|
|
15
|
|
16 class Parent{
|
|
17 this(int dummy){
|
528
|
18 x=2;
|
190
|
19 }
|
528
|
20 int x;
|
190
|
21 }
|
|
22
|
402
|
23 class Child : Parent{
|
190
|
24 this(){
|
528
|
25 assert(x==2);
|
190
|
26 super(0);
|
|
27 }
|
|
28 }
|
|
29
|
|
30 int main(){
|
|
31 Child o = new Child();
|
528
|
32 return 0;
|
190
|
33 }
|