From 65e8abac80cc06f9f05147b51908a47549e9342e Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 13 Aug 2023 21:07:46 +0200 Subject: [PATCH] tests/lang: add error output for $ operator test --- .../eval-fail-function-apply-dollar.err.exp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/lang/eval-fail-function-apply-dollar.err.exp diff --git a/tests/lang/eval-fail-function-apply-dollar.err.exp b/tests/lang/eval-fail-function-apply-dollar.err.exp new file mode 100644 index 000000000..2d23e4ae6 --- /dev/null +++ b/tests/lang/eval-fail-function-apply-dollar.err.exp @@ -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|