Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
Description
output = "a"
[1,1,1].each {
output = output + "b"
[1,1,1].each
}
print output
I expected "abcccbcccbccc" but I get "abbb"
Attachments
Issue Links
- is depended upon by
-
GROOVY-754 scoping
- Closed
-
GROOVY-764 closures
- Closed
- is duplicated by
-
GROOVY-918 Cannot set outside variables from within nested closures
- Closed