[
https://issues.apache.org/jira/browse/GROOVY-10071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles updated GROOVY-10071:
---------------------------------
Component/s: Static Type Checker
> STC: closure with default argument(s) or variadic parameter
> -----------------------------------------------------------
>
> Key: GROOVY-10071
> URL: https://issues.apache.org/jira/browse/GROOVY-10071
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 2.5.14, 3.0.8, 4.0.0-alpha-3
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
>
> Consider the following:
> {code:groovy}
> def f = { p = 'foo' -> return p }
> assert f('bar') == 'bar'
> assert f() == 'foo'
> def g = { ... zeroOrMore -> return 'foo' }
> assert g() == 'foo'
> {code}
> Both fail to compile successfully.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)