Files
lix/tests/functional/lang/eval-fail-missing-and-unexpected-args.err.exp
T
Zitrone f6c4034e2f libexpr: show all missing and unexpected arguments instead of just one
also only give suggestions for unused arguments

Change-Id: Iae8e72defbbe2571a803dfd7216745b39848ccb2
2025-03-11 20:21:24 +01:00

14 lines
541 B
Plaintext

error:
… from call site
at /pwd/lang/eval-fail-missing-and-unexpected-args.nix:1:1:
1| ({a, b, c}: a + b + c) {c = 1; d = 1; e = 1; f = 1;}
| ^
2|
error: function 'anonymous lambda' called without required arguments 'a' and 'b' and with unexpected arguments 'd', 'e' and 'f'
at /pwd/lang/eval-fail-missing-and-unexpected-args.nix:1:2:
1| ({a, b, c}: a + b + c) {c = 1; d = 1; e = 1; f = 1;}
| ^
2|
Did you mean one of a or b?