add test for no formals case
This commit is contained in:
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; }
|
||||
Reference in New Issue
Block a user