You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/04/28 15:45:00 UTC
[jira] [Resolved] (GROOVY-10063) STC: multiple-assignment from
tuple-bearing static method
[ https://issues.apache.org/jira/browse/GROOVY-10063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-10063.
----------------------------------
Fix Version/s: 4.0.0-beta-1
Resolution: Fixed
> 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.3.4#803005)