changeset 320:6f15c66181a5

fixed new syntax (part 2) Walter <walter@digitalmars.com> 2005-03-17 news:000b01c52b1a$f55660b0$0200a8c0@colossus
author thomask
date Thu, 17 Mar 2005 21:25:17 +0000
parents f4c5cc37d71d
children c1396281e0e8
files run/private_02.d
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/run/private_02.d	Thu Mar 17 21:22:53 2005 +0000
+++ b/run/private_02.d	Thu Mar 17 21:25:17 2005 +0000
@@ -18,7 +18,8 @@
 	}
 
 	int test(){
-		return (new Inner()).i;
+		Inner io = new Inner();
+		return io.i;
 	}
 }