Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
None
Description
Following code:
@groovy.transform.CompileStatic abstract class Test { def foo() { def bar = createBar() for(f in bar.foo) { println f } } Bar createBar() { new Bar() } } class Bar { List<String> foo = [] }
Produces
Access to Bar#foo is forbidden at line: 7, column: 18