Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.1
-
Component/s: Static Type Checker
-
Labels:None
-
Number of attachments :
Description
@groovy.transform.CompileStatic
class MyClass {
void method() {
String var = "Hola"
println this.pepe
println var.getProperties()
println var.properties //Works without @CompileStatic, but it doesn't with it
}
String getPepe() {
return "Hola Pepe";
}
}
new MyClass().method()
The error obtained is:
[Static type checking] - No such property: properties for class: java.lang.String
at line: 9, column: 13