Mercurial > projects > dstress
comparison compile/r/return_10_A.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | daef239f37cf |
children |
comparison
equal
deleted
inserted
replaced
1534:345207906be7 | 1535:20d8ee6523e1 |
---|---|
8 // @desc@ [Issue 444] New: Inside a foreach with delegates, void return does not compile | 8 // @desc@ [Issue 444] New: Inside a foreach with delegates, void return does not compile |
9 | 9 |
10 module dstress.compile.r.return_10_A; | 10 module dstress.compile.r.return_10_A; |
11 | 11 |
12 void foo(){ | 12 void foo(){ |
13 int nothing( int delegate(inout int) dg ){ | 13 int nothing( int delegate(ref int) dg ){ |
14 return 0; | 14 return 0; |
15 } | 15 } |
16 | 16 |
17 foreach(int x; ¬hing){ | 17 foreach(int x; ¬hing){ |
18 return; | 18 return; |