Synopsis A function that is declared without keyword parameters is called with keyword parameters.
Description Functions maybe declared with or without keyword parameters. This error is generated when a function has been declared without keyword parameters but is called with a keyword parameter.

  • Replace the keyword parameter in the call by a positional parameter.
  • Add a keyword parameter to the function declaration.
rascal>int incr(int x) = x + 1;
int (int): int incr(int);
rascal>incr(3, delta=5);
int: 4
Here is one solution:
rascal>int incr(int x, int delta=1) = x + delta;
int (int): int incr(int, int delta= ...);
rascal>incr(3, delta=5);
int: 8
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit