groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-7852) Inconsistent checking of final for multi-assignments
Date Fri, 03 Jun 2016 04:19:59 GMT

     [ 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)

Mime
View raw message