# HG changeset patch # User thomask # Date 1162999475 0 # Node ID 9ea324147913569075aca2f2cdade4295c72d85c # Parent 106179f3142f0d5e20a3ac0d0357fb53fa4c41ec [Issue 444] New: Inside a foreach with delegates, void return does not compile Kazuhiro Inaba 2006-10-20 news:bug-444-3@http.d.puremagic.com/issues/ diff -r 106179f3142f -r 9ea324147913 compile/r/return_10_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/r/return_10_A.d Wed Nov 08 15:24:35 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Kazuhiro Inaba +// @date@ 2006-10-20 +// @uri@ news:bug-444-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 444] New: Inside a foreach with delegates, void return does not compile + +module dstress.compile.r.return_10_A; + +void foo(){ + int nothing( int delegate(inout int) dg ){ + return 0; + } + + foreach(int x; ¬hing){ + return; + } +} + diff -r 106179f3142f -r 9ea324147913 reporter.txt --- a/reporter.txt Wed Nov 08 15:24:28 2006 +0000 +++ b/reporter.txt Wed Nov 08 15:24:35 2006 +0000 @@ -76,6 +76,7 @@ John Reimer Johan Granberg k2 +Kazuhiro Inaba kenny Kevin Bealer Kevin VR