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 2024/11/12 11:39:00 UTC
[jira] [Closed] (GROOVY-6324) Cannot call closure like a method in type checked mode
[ https://issues.apache.org/jira/browse/GROOVY-6324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-6324.
-----------------------------
> Cannot call closure like a method in type checked mode
> ------------------------------------------------------
>
> Key: GROOVY-6324
> URL: https://issues.apache.org/jira/browse/GROOVY-6324
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 2.2.0-beta-1, 2.3.0, 2.4.0-rc-1
> Reporter: Peter Niederwieser
> Assignee: Eric Milles
> Priority: Major
> Fix For: 5.0.0-alpha-11
>
>
> {{Closure closure = ...; closure()}} doesn't work in type-checked mode. Instead, one has to use {{closure.call()}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)