# HG changeset patch # User thomask # Date 1159776195 0 # Node ID c2a8690a9fca2d5ca9d9811d790521d05a66db6c # Parent 8e99969d0101ffd720c877c433bd310b1ead4aeb [Issue 297] New: Shadowing declarations allowed in foreach type lists Deewiant 2006-09-20 news:bug-297-3@http.d.puremagic.com/issues/ diff -r 8e99969d0101 -r c2a8690a9fca nocompile/f/foreach_37_A.d --- /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 +// @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){ + } +} diff -r 8e99969d0101 -r c2a8690a9fca nocompile/f/foreach_37_B.d --- /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 +// @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){ + } +} diff -r 8e99969d0101 -r c2a8690a9fca nocompile/f/foreach_37_C.d --- /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 +// @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){ + } +} diff -r 8e99969d0101 -r c2a8690a9fca nocompile/f/foreach_37_D.d --- /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 +// @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){ + } +}