changeset 1163:c2a8690a9fca

[Issue 297] New: Shadowing declarations allowed in foreach type lists Deewiant <deewiant@gmail.com> 2006-09-20 news:bug-297-3@http.d.puremagic.com/issues/
author thomask
date Mon, 02 Oct 2006 08:03:15 +0000
parents 8e99969d0101
children 7fbe1218b3b5
files nocompile/f/foreach_37_A.d nocompile/f/foreach_37_B.d nocompile/f/foreach_37_C.d nocompile/f/foreach_37_D.d
diffstat 4 files changed, 80 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/f/foreach_37_A.d	Mon Oct 02 08:03:15 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Deewiant <deewiant@gmail.com>	
+// @date@	2006-09-20
+// @uri@	news:bug-297-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 297] New: Shadowing declarations allowed in foreach type lists
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.f.foreach_37_A;
+
+void foo(){
+	int[] x = new int[3];
+	int e;
+
+	foreach(e; x){
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/f/foreach_37_B.d	Mon Oct 02 08:03:15 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Deewiant <deewiant@gmail.com>	
+// @date@	2006-09-20
+// @uri@	news:bug-297-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 297] New: Shadowing declarations allowed in foreach type lists
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.f.foreach_37_B;
+
+void foo(){
+	int[] x = new int[3];
+	int e;
+
+	foreach(i, e; x){
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/f/foreach_37_C.d	Mon Oct 02 08:03:15 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Deewiant <deewiant@gmail.com>	
+// @date@	2006-09-20
+// @uri@	news:bug-297-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 297] New: Shadowing declarations allowed in foreach type lists
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.f.foreach_37_C;
+
+void foo(){
+	int[] x = new int[3];
+	int i;
+
+	foreach(i, e; x){
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/f/foreach_37_D.d	Mon Oct 02 08:03:15 2006 +0000
@@ -0,0 +1,20 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Deewiant <deewiant@gmail.com>	
+// @date@	2006-09-20
+// @uri@	news:bug-297-3@http.d.puremagic.com/issues/
+// @desc@	[Issue 297] New: Shadowing declarations allowed in foreach type lists
+
+// __DSTRESS_ELINE__ 18
+
+module dstress.nocompile.f.foreach_37_D;
+
+void foo(){
+	int[] x = new int[3];
+	int i, e;
+
+	foreach(i, e; x){
+	}
+}