Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.3
-
None
-
Windows 7, Java 6, Groovy 2.1.3
Description
The following code gives the error: [Static type checking] - The variable [booleanProperty] is undeclared. It works fine if the method is named "getBooleanProperty".
MyClass.groovy
@groovy.transform.CompileStatic class MyClass { MyClass() { println booleanProperty } // this works fine if we name this getter "getBooleanProperty" public boolean isBooleanProperty() { return true } }