Mercurial > projects > dstress
changeset 319:f4c5cc37d71d
fixed new syntax
Walter <walter@digitalmars.com>
2005-03-17
news:000b01c52b1a$f55660b0$0200a8c0@colossus
author | thomask |
---|---|
date | Thu, 17 Mar 2005 21:22:53 +0000 |
parents | bb7273309924 |
children | 6f15c66181a5 |
files | run/private_02.d |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/run/private_02.d Thu Mar 17 15:52:24 2005 +0000 +++ b/run/private_02.d Thu Mar 17 21:22:53 2005 +0000 @@ -18,11 +18,12 @@ } int test(){ - return new Inner().i; + return (new Inner()).i; } } int main(){ - assert(new Outer().test()==3); + Outer o = new Outer(); + assert(o.test()==3); return 0; }