Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
Consider the following:
def m(Closure<Number>... closures) { closures*.call().sum() } @groovy.transform.TypeChecked void test() { print m({->1},{->'2'}) }
No error is given for the improper String return type.
Attachments
Issue Links
- is related to
-
GROOVY-8045 Implicit closure coercion doesn't work for elements of array of functional objects
- Closed
-
GROOVY-6022 Static type checker should not register errors for ellipsis closure parameter annotated with @DelegatesTo
- Closed