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/27 20:51:00 UTC
[jira] [Created] (GROOVY-10063) STC: multiple-assignment from
tuple-bearing static method
Eric Milles created GROOVY-10063:
------------------------------------
Summary: 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
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() {
// Fixed in Groovy 3? Backport to Groovy 2.5?
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)