Navigation
Synopsis A function is called with a keyword parameter that was not declared in the function's declaration.
Description Rascal functions may have keyword parameters. This error is generated when a function call uses an undeclared keyword parameter.

Remedies:
  • Rename the keyword parameter in the call.
  • Add a new keyword parameter to the function.
Examples
rascal>int incr(int n, int delta=1) = n + delta;
int (int): int incr(int, int delta= ...);
Calling incr with a wrong keyword parameter gives an error:
rascal>incr(3, diff=5);
int: 4
This can be fixed by using the correct name for the keyword parameter:
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 ask.rascal-mpl.org.