[
https://issues.apache.org/jira/browse/GROOVY-10062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10062.
------------------------------
> STC: no type parameter inference for variadic method called with fewer
> arguments than parameters
> ------------------------------------------------------------------------------------------------
>
> Key: GROOVY-10062
> URL: https://issues.apache.org/jira/browse/GROOVY-10062
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-1
>
>
> Consider the following:
> {code:groovy}
> def <T> T m(T t, ... zeroOrMore) {
> }
> def obj = m(42)
> {code}
> When method "m" is called with just one argument, STC does not infer the type
> of "T".
--
This message was sent by Atlassian Jira
(v8.20.1#820001)