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

Paul King updated GROOVY-7911:
------------------------------
    Issue Type: Improvement  (was: Bug)

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
>
> {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