You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2016/06/03 04:19:59 UTC

[jira] [Resolved] (GROOVY-7852) Inconsistent checking of final for multi-assignments

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

Paul King resolved GROOVY-7852.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 2.5.0-beta-1

PR merged

> Inconsistent checking of final for multi-assignments
> ----------------------------------------------------
>
>                 Key: GROOVY-7852
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7852
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Paul King
>            Assignee: Paul King
>             Fix For: 2.5.0-beta-1
>
>
> The following code passes but should fail final variable analysis:
> {code}
> final x = 3
> def y = 4
> (x, y) = [30, 40]
> assert x + y == 70
> {code}



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