Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.7
-
None
-
None
Description
@CompileStatic interface I { String getFoo() } @CompileStatic trait T { abstract I getProp() def usage() { prop.with { foo.toUpperCase() // Groovyc: [Static type checking] - Cannot find matching method java.lang.Object#toUpperCase(). Please check if the declared type is right and if the method exists. // works when changed to getFoo().toUpperCase() } } } @CompileStatic class Main implements T { I prop = { "hello" } as I static void main(String[] args) { println new Main().usage() } }