DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
B2005: arguments do not match the parameters
Catalog status: active. Default severity: error. Stable name: wrong-arguments. Family: Types and constraints.
A call must give each parameter without a default exactly one value, positionally first and then by name; an array is indexed with one index per dimension. The message says what does not fit, and the declaration is shown.
Example (Vada)
procedure Move (X, Y : Integer) is null;
...
Move (1, 2, 3); -- too many
Move (X => 1, Z => 2); -- no parameter Z
Move (1); -- no value for YExample (Varc)
fn move(x, y: Integer) {}
...
move(1, 2, 3); // too many
move(x: 1, z: 2); // no parameter z
move(1); // no value for y
What to do
Match the subprogram's parameter list.
Regression source and further reading
Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.
See types and constraints, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.