-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.5.9, 3.0.0-rc-2
-
Component/s: None
-
Labels:None
Consider the following:
class C { @groovy.transform.CompileStatic void meth(String[] strings) { strings.with { println length } } }
Compiler currently emits error "The variable [length] is undeclared." because the object expression type is C and not String[] (see StaticTypeCheckingVisitor#existsProperty).