[ 
https://issues.apache.org/jira/browse/GROOVY-10063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-10063.
------------------------------

> STC: multiple-assignment from tuple-bearing static method
> ---------------------------------------------------------
>
>                 Key: GROOVY-10063
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10063
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static Type Checker
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 4.0.0-beta-1
>
>
> Follow up from GROOVY-8223 and GROOVY-8887.  Consider the following:
> {code:groovy}
> static Tuple2<String,Integer> make() {
>   Tuple.tuple('answer', 42)
> }
> @groovy.transform.CompileStatic
> void test() {
>   def (String string, Integer number) = make()
>   println string
>   println number
> }
> test()
> {code}
> Destructuring of tuple fails for static method call expression.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to