groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniil Ovchinnikov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-7911) Chained multiple assignment parsing fail
Date Thu, 18 Aug 2016 14:41:20 GMT

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

Daniil Ovchinnikov updated GROOVY-7911:
---------------------------------------
    Description: 
{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}

  was:
{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] 
{code}


> Chained multiple assignment parsing fail
> ----------------------------------------
>
>                 Key: GROOVY-7911
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7911
>             Project: Groovy
>          Issue Type: Bug
>          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)

Mime
View raw message