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:
parent
3a3c062982
commit
4a80c92a4d
2 changed files with 13 additions and 0 deletions
12
tests/functional/lang/eval-fail-empty-formals.err.exp
Normal file
12
tests/functional/lang/eval-fail-empty-formals.err.exp
Normal 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|
|
||||||
1
tests/functional/lang/eval-fail-empty-formals.nix
Normal file
1
tests/functional/lang/eval-fail-empty-formals.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(foo@{ }: 1) { a = 3; }
|
||||||
Loading…
Add table
Add a link
Reference in a new issue