Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-2
-
None
-
HEAD
Description
You cannot set variables more than one closure aware from their scope:
def t = 2;
[1].each {
[1].each
}
println t;
This currently prints 0.
Attachments
Issue Links
- duplicates
-
GROOVY-534 Nested closures - variable scope problem
- Closed
- is depended upon by
-
GROOVY-754 scoping
- Closed
-
GROOVY-764 closures
- Closed