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

2017-05-01 Thread Paul King (JIRA)

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

Paul King resolved GROOVY-3898.
---
   Resolution: Fixed
Fix Version/s: (was: 3.0)
   2.6.0-alpha-1

> 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: 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
> 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.15#6346)


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

2017-01-19 Thread Daniel Sun (JIRA)

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

Daniel Sun resolved GROOVY-3898.

   Resolution: Fixed
Fix Version/s: (was: 4.0)
   3.0

Fixed in the parrot branch

> 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: 3.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)