Eric Milles created GROOVY-10071:
------------------------------------

             Summary: 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
    Affects Versions: 4.0.0-alpha-3, 3.0.8, 2.5.14
            Reporter: Eric Milles
            Assignee: Eric Milles


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)

Reply via email to