Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
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