Eric Milles created GROOVY-10062:
------------------------------------

             Summary: 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


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.3.4#803005)

Reply via email to