Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.14, 3.0.8, 4.0.0-alpha-3
-
None
Description
Consider the following:
@groovy.transform.CompileStatic void test() { def c = { ... zeroOrMore -> return 'foo' + zeroOrMore } assert c('bar', 'baz') == 'foo[bar, baz]' assert c('bar') == 'foo[bar]' assert c() == 'foo[]' } test()
Attachments
Issue Links
- is cloned by
-
GROOVY-10072 SC: closure with default argument(s)
- Closed