1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 11:36:03 +01:00

add test for no formals case

This commit is contained in:
Taeer Bar-Yam 2025-10-27 23:05:24 +01:00
parent 3a3c062982
commit 4a80c92a4d
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
error:
… from call site
at /pwd/lang/eval-fail-empty-formals.nix:1:1:
1| (foo@{ }: 1) { a = 3; }
| ^
2|
error: function 'anonymous lambda' called with unexpected argument 'a'
at /pwd/lang/eval-fail-empty-formals.nix:1:2:
1| (foo@{ }: 1) { a = 3; }
| ^
2|

View file

@ -0,0 +1 @@
(foo@{ }: 1) { a = 3; }