Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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).