[
https://issues.apache.org/jira/browse/GROOVY-7242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-7242:
--------------------------------
Labels: traits (was: )
> calling trait method inside closure causes compiler error when CompileStatic
> is used
> ------------------------------------------------------------------------------------
>
> Key: GROOVY-7242
> URL: https://issues.apache.org/jira/browse/GROOVY-7242
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 2.3.9, 2.4.1
> Environment: JDK: 1.7, O/S: windows
> Reporter: Bob Reynolds
> Assignee: Cédric Champeau
> Priority: Critical
> Labels: traits
> 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.20.10#820010)