Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-6
-
None
-
None
-
jdk 1.5.0-beta2
Description
This code...
i=100;
println "first i = ${i}";
[1].each {
i=7;
println "now i = ${i}";
[4,5,6,7].each
println "and now i = ${i}";
}
...produces this:
first i = 100
now i = 7
7
8
9
10
and now i = 7
...however, if first 2 lines are removed, it works ok
Attachments
Issue Links
- is depended upon by
-
GROOVY-764 closures
- Closed