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 2017/05/02 02:04:16 UTC

[jira] [Closed] (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 closed GROOVY-7852.
-----------------------------

> Inconsistent checking of final for multi-assignments
> ----------------------------------------------------
>
>                 Key: GROOVY-7852
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7852
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>            Reporter: Paul King
>            Assignee: Paul King
>             Fix For: 2.5.0-alpha-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.15#6346)