Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-rc-2
-
None
Description
@groovy.transform.CompileStatic class Test { List getListVar() { new ArrayList() } void someMethod() { def t = new Object() t = this t.getListVar() //No error here t.listVar //error is being reported here } }
1 compilation error:
Access to java.lang.Object#listVar is forbidden at line: 13, column: 6