mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
tests/lang: add error output for $ operator test
This commit is contained in:
parent
5d7ee4d437
commit
65e8abac80
1 changed files with 27 additions and 0 deletions
27
tests/lang/eval-fail-function-apply-dollar.err.exp
Normal file
27
tests/lang/eval-fail-function-apply-dollar.err.exp
Normal file
|
@ -0,0 +1,27 @@
|
|||
error:
|
||||
… from call site
|
||||
|
||||
at /pwd/lang/eval-fail-function-apply-dollar.nix:6:10:
|
||||
|
||||
5| add = a: b: a + b;
|
||||
6| in add a $ a $ b
|
||||
| ^
|
||||
7|
|
||||
|
||||
… while calling 'add'
|
||||
|
||||
at /pwd/lang/eval-fail-function-apply-dollar.nix:5:12:
|
||||
|
||||
4|
|
||||
5| add = a: b: a + b;
|
||||
| ^
|
||||
6| in add a $ a $ b
|
||||
|
||||
error: attempt to call something which is not a function but an integer
|
||||
|
||||
at /pwd/lang/eval-fail-function-apply-dollar.nix:6:14:
|
||||
|
||||
5| add = a: b: a + b;
|
||||
6| in add a $ a $ b
|
||||
| ^
|
||||
7|
|
Loading…
Reference in a new issue