diff nocompile/super_09.d @ 528:9e0847cf535a

pre DMD-0.123 review Walter <walter@digitalmars.com> 2005-05-11 mail:00a301c5567d$489cbf20$0200a8c0@colossus
author thomask
date Thu, 12 May 2005 11:13:04 +0000
parents a56ff70d7187
children 39f144b0814e
line wrap: on
line diff
--- a/nocompile/super_09.d	Thu May 12 00:16:05 2005 +0000
+++ b/nocompile/super_09.d	Thu May 12 11:13:04 2005 +0000
@@ -7,27 +7,27 @@
 // @uri@	news:sr8p82-lu3.ln1@kuehne.cn
 // @url@	nntp://digitalmars.com/digitalmars.D.bugs/2528
 
-// call to "this" before "super"
+// call to "this" before "super"-constructor
 
-// __DSTRESS_ELINE__  26
+// __DSTRESS_ELINE__  25
 
 module dstress.nocompile.super_09;
 
-size_t status;
-
 class Parent{
 	this(int dummy){
+		x=2;
 	}
+	int x;
 }
 
 class Child : Parent{
 	this(){
-		status = cast(int) &this;
+		assert(x==2);
 		super(0);
 	}
 }
 
 int main(){
 	Child o = new Child();
-	return status & 0;
+	return 0;
 }