[ https://issues.apache.org/jira/browse/GROOVY-11394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-11394. ------------------------------ > 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. > GROOVY-10072 -- This message was sent by Atlassian Jira (v8.20.10#820010)