You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/02 02:31:59 UTC
[jira] [Commented] (GROOVY-7852) Inconsistent checking of final for
multi-assignments
[ https://issues.apache.org/jira/browse/GROOVY-7852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311609#comment-15311609 ]
ASF GitHub Bot commented on GROOVY-7852:
----------------------------------------
GitHub user paulk-asert opened a pull request:
https://github.com/apache/groovy/pull/343
GROOVY-7852: Inconsistent checking of final for multi-assignments
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paulk-asert/groovy groovy7852
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/343.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #343
----
commit 0795f3eefd5ee9d0952d355098edc50e38639aaa
Author: paulk <pa...@asert.com.au>
Date: 2016-06-02T02:29:42Z
GROOVY-7852: Inconsistent checking of final for multi-assignments
----
> 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
>
> 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)