Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8-rc-1
-
None
-
None
-
Mac OS X
Description
attached code
import groovy.transform.Field
@Field def xxx = 3
foo = {
println xxx
}
foo()
generate following error:
Caught: BUG! exception in phase 'class generation' in source unit '/Users/uehaj/tmp/bug.groovy' tried to get a variable with the name xxx as stack variable, but a variable with this name was not created