You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/06/11 18:56:00 UTC
[jira] [Updated] (GROOVY-9586) CLONE - SC: calling trait method
inside closure has incorrect receivers data
[ https://issues.apache.org/jira/browse/GROOVY-9586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-9586:
--------------------------------
Priority: Major (was: Critical)
> CLONE - SC: calling trait method inside closure has incorrect receivers data
> ----------------------------------------------------------------------------
>
> Key: GROOVY-9586
> URL: https://issues.apache.org/jira/browse/GROOVY-9586
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.3.9, 2.4.1
> Environment: JDK: 1.7, O/S: windows
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 2.4.2
>
>
> Calling f2() within the each closure causes compiler error.
> {code}
> @groovy.transform.CompileStatic
> trait MyTrait {
> def f() {
> ['a'].each {f2()}
> }
> def f2() {
> true
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)