[ https://issues.apache.org/jira/browse/GROOVY-11394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-11394. ---------------------------------- Fix Version/s: 5.0.0-alpha-9 Resolution: Fixed https://github.com/apache/groovy/commit/be19a80a3b9b1221883167771391ce3d32715847 > STC: zero-parameter closure call with args > ------------------------------------------ > > Key: GROOVY-11394 > URL: https://issues.apache.org/jira/browse/GROOVY-11394 > Project: Groovy > Issue Type: Bug > Components: Static Type Checker > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > Fix For: 5.0.0-alpha-9 > > > Consider the following: > {code:groovy} > @groovy.transform.TypeChecked > void test() { > def c = { -> } > c("") > } > test() > {code} > This should be flagged as an error. -- This message was sent by Atlassian Jira (v8.20.10#820010)