Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.8-rc-2
-
None
-
None
Description
Perhaps related to GROOVY-4733.
I would expect that this code prints "99", but it doesn't. It prints "9":
class A { { print f } def f = 9 // def other = { } { print f } } new A()
This code, however, prints "99":
class A { { print f } { print f } def f = 9 // def other = { } } new A()