diff run/overload_21.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 b7efa2ad5425
children b8c0195059d9
line wrap: on
line diff
--- a/run/overload_21.d	Thu May 12 00:16:05 2005 +0000
+++ b/run/overload_21.d	Thu May 12 11:13:04 2005 +0000
@@ -20,10 +20,10 @@
 
 int main(){
 	assert(Foo.init(2L)==1);
-	Foo f = new Foo;
+	Foo* f = new Foo;
 	assert(Foo.init(3L)==1);
-	assert(f.init(4L)==1);
-	assert(f.init(5)==0);
+	assert((*f).init(4L)==1);
+	assert((*f).init(5)==0);
 	return 0;
 }