Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.5.1
-
Component/s: None
-
Labels:None
-
Environment:Groovy 1.5.0
-
Number of attachments :
Description
def method(params) {
params.a + params.b
}
assert 3 == method a:1, b:2
This causes an org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script6: 5: unexpected token: a @ line 5, column 20.
1 error
It works without the assertion.
Parenthesis-less calls are only allowed for top-level statements, aka commands.