[ 
https://issues.apache.org/jira/browse/GROOVY-7911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430535#comment-15430535
 ] 

Paul King edited comment on GROOVY-7911 at 8/22/16 8:47 PM:
------------------------------------------------------------

I'll mark this as an improvement since, AFAIK, Groovy has never promised to 
provide this feature. Multi-assignment was advertisied with some limitations, 
e.g. there is also no support for += and other compound assignment operators in 
combination with multi-assignment.


was (Author: paulk):
I'll mark this as an improvement since AFAIK, Groovy has never promised to 
provide this feature. Multi-assignment was advertisied with some limitations, 
e.g. there is also no support for += and other compound assignment operators in 
combination with multi-assignment.

> Chained multiple assignment parsing fail
> ----------------------------------------
>
>                 Key: GROOVY-7911
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7911
>             Project: Groovy
>          Issue Type: Improvement
>          Components: parser
>            Reporter: Daniil Ovchinnikov
>            Assignee: Paul King
>
> {code}
> def a, b, c, d
> (a, b) = [1, 2]           
> (c, d) = (a, b) = [1, 2]  // fails, ')' expected after 'a'
> (c, d) = a = (a, b) = [1, 2] // works though
> {code}



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

Reply via email to