Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
-
None
Description
The following code prints
1
1
it should print
1
2
class Test
{
static void main(args)
{
i = 1 // <--- remove this line and result is correct (1, 2)
c = {
i = 1
println("i = ${i}")
c1 =
c1()
println("i = ${i}")
}
c()
}
}
Attachments
Issue Links
- is depended upon by
-
GROOVY-754 scoping
- Closed