Static compilation fails to recognize type parameters when functional interfaces are used and a variable name is specified without a type. For example:
Compiling this reports the error: [Static type checking] - Cannot find matching method java.lang.Object#toUpperCase(). Please check if the declared type is right and if the method exists. The same error does not occur when using a Closure annotated with @ClosureParams. -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html