changeset 1216:9ea324147913

[Issue 444] New: Inside a foreach with delegates, void return does not compile Kazuhiro Inaba <kinaba@is.s.u-tokyo.ac.jp> 2006-10-20 news:bug-444-3@http.d.puremagic.com/issues/
author thomask
date Wed, 08 Nov 2006 15:24:35 +0000
parents 106179f3142f
children cd5da42e46da
files compile/r/return_10_A.d reporter.txt
diffstat 2 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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 <kinaba@is.s.u-tokyo.ac.jp>
+// @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; &nothing){
+		return;
+	}
+}
+
--- 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		<brk_6502@NO_SPA_M.yahoo.com>
 Johan Granberg		<lijat.meREM@VEgmail.com>
 k2
+Kazuhiro Inaba		<kinaba@is.s.u-tokyo.ac.jp>
 kenny			<funisher@gmail.com>
 Kevin Bealer
 Kevin VR		<azra@pandora.be>