You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2017/01/19 12:42:26 UTC

[jira] [Assigned] (GROOVY-3898) Allow the specification of types when initializing multiple iteration variables in a "for" construct

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

Daniel Sun reassigned GROOVY-3898:
----------------------------------

    Assignee: Daniel Sun

> 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-antlr, syntax
>    Affects Versions: 1.6.5, 1.7-beta-2
>            Reporter: Ed Clark
>            Assignee: Daniel Sun
>            Priority: Minor
>             Fix For: 4.0
>
>
> 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
> for( (i, j)=[0,0]; i<10; {i++; j++ }()){ ... }
> compiles
> for( def( int i, int j)=[0,0]; i<10; {i++; j++ }()){ ... }
> does not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)