Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.7
-
None
Description
@CompileStatic class Outer { def foo = 1 Inner createInner() { new Inner() } class Inner {} } @CompileStatic // works without @CompileStatic class Main { static void main(String[] args) { def i = new Outer().createInner() println i.foo // [Static type checking] - No such property: foo for class: Outer$Inner } }
I think should work in both static and dynamic contexts or fail in both.
Please close this issue if this is by design.
Attachments
Issue Links
- relates to
-
GROOVY-8051 Reference outer class property within inner class closure
- Closed