[
https://issues.apache.org/jira/browse/GROOVY-10636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10636.
------------------------------
> STC: closure array or varargs parameter not properly type-checked
> -----------------------------------------------------------------
>
> Key: GROOVY-10636
> URL: https://issues.apache.org/jira/browse/GROOVY-10636
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Labels: varargs
> Fix For: 5.0.0-alpha-1
>
>
> Consider the following:
> {code:groovy}
> def m(Closure<Number>... closures) {
> closures*.call().sum()
> }
> @groovy.transform.TypeChecked
> void test() {
> print m({->1},{->'2'})
> }
> {code}
> No error is given for the improper String return type.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)