...
| Code Block | ||
|---|---|---|
| ||
def foo(x,y}){} foo(x:1,y:2) |
This code will fail at runtime, because the method foo expects two arguments, but the map you gave is only one argument.
...
...
| Code Block | ||
|---|---|---|
| ||
def foo(x,y}){} foo(x:1,y:2) |
This code will fail at runtime, because the method foo expects two arguments, but the map you gave is only one argument.
...