Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha-4, 2.5.6
-
None
-
None
Description
Given:
import groovy.transform.CompileStatic import groovy.transform.PackageScope @CompileStatic class Test { @PackageScope static final String S = 'Some constant' static class Inner { String method() { S } } }
there is a compilation error:
Access to Test#S is forbidden @ line -1, column -1.
No error without @CompileStatic.
Analogous code works in Java
Attachments
Issue Links
- links to