Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.13
-
None
Description
import groovy.transform.CompileStatic abstract class A1 { def abstract foo() } @CompileStatic def m() { A1 a = { print this } //Groovyc: [Static type checking] - Cannot assign value of type groovy.lang.Closure <java.lang.Void> to variable of type A1 }
Looks like it should work as in dynamic mode.