Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
import java.util.function.BiConsumer @groovy.transform.TypeChecked def BiConsumer<String, List<?>> m() { return (text, list) -> { // ... } }
The types of "text" and "list" are not known and errors occur for String or List method calls.
https://github.com/groovy/groovy-eclipse/issues/1327
https://github.com/groovy/groovy-eclipse/issues/1373
Attachments
Issue Links
- is related to
-
GROOVY-9997 STC: cast or coerce to functional interface fails to infer param types of closure/lambda
- Closed
- relates to
-
GROOVY-11265 Runtime rehydrate error for closure in interface default method
- Closed