[ https://issues.apache.org/jira/browse/GROOVY-3898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-3898: -------------------------------- Language: groovy > [PARROT] Allow the specification of types when initializing multiple > iteration variables in a "for" construct > ------------------------------------------------------------------------------------------------------------- > > Key: GROOVY-3898 > URL: https://issues.apache.org/jira/browse/GROOVY-3898 > Project: Groovy > Issue Type: Improvement > Components: Compiler, parser, parser-antlr2, syntax > Affects Versions: 1.6.5, 1.7-beta-2 > Reporter: Ed Clark > Assignee: Daniel Sun > Priority: Minor > Fix For: 3.0.0-alpha-1, 2.6.0-alpha-1 > > > {{def (int i, int j) = [0,0]}} works as a stand alone assignment, but it does > not work in the initialization portion of a for. For example, while > {code:groovy} > for ((i, j)=[0,0]; i<10; {i++; j++ }()) { ... } > {code} > compiles > {code:groovy} > for (def( int i, int j)=[0,0]; i<10; {i++; j++ }()){ ... } > {code} > does not. -- This message was sent by Atlassian Jira (v8.20.10#820010)