libexpr: show all missing and unexpected arguments instead of just one

also only give suggestions for unused arguments

Change-Id: Iae8e72defbbe2571a803dfd7216745b39848ccb2
This commit is contained in:
Zitrone
2025-03-11 20:21:24 +01:00
parent 8f871210b5
commit f6c4034e2f
12 changed files with 158 additions and 34 deletions
@@ -0,0 +1,12 @@
error:
… from call site
at /pwd/lang/eval-fail-missing-args.nix:1:1:
1| ({a, b, c, d}: a + b + c + d) { }
| ^
2|
error: function 'anonymous lambda' called without required arguments 'a', 'b', 'c' and 'd'
at /pwd/lang/eval-fail-missing-args.nix:1:2:
1| ({a, b, c, d}: a + b + c + d) { }
| ^
2|