aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-mutual-recursion.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-mutual-recursion.err.exp')
-rw-r--r--test/testdata/eval-fail-mutual-recursion.err.exp64
1 files changed, 64 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-mutual-recursion.err.exp b/test/testdata/eval-fail-mutual-recursion.err.exp
new file mode 100644
index 0000000..c034afc
--- /dev/null
+++ b/test/testdata/eval-fail-mutual-recursion.err.exp
@@ -0,0 +1,64 @@
1error:
2 … from call site
3 at /pwd/lang/eval-fail-mutual-recursion.nix:36:3:
4 35| in
5 36| throwAfterA true 10
6 | ^
7 37|
8
9 … while calling 'throwAfterA'
10 at /pwd/lang/eval-fail-mutual-recursion.nix:29:26:
11 28|
12 29| throwAfterA = recurse: n:
13 | ^
14 30| if n > 0
15
16 … from call site
17 at /pwd/lang/eval-fail-mutual-recursion.nix:31:10:
18 30| if n > 0
19 31| then throwAfterA recurse (n - 1)
20 | ^
21 32| else if recurse
22
23 (19 duplicate frames omitted)
24
25 … from call site
26 at /pwd/lang/eval-fail-mutual-recursion.nix:33:10:
27 32| else if recurse
28 33| then throwAfterB true 10
29 | ^
30 34| else throw "Uh oh!";
31
32 … while calling 'throwAfterB'
33 at /pwd/lang/eval-fail-mutual-recursion.nix:22:26:
34 21| let
35 22| throwAfterB = recurse: n:
36 | ^
37 23| if n > 0
38
39 … from call site
40 at /pwd/lang/eval-fail-mutual-recursion.nix:24:10:
41 23| if n > 0
42 24| then throwAfterB recurse (n - 1)
43 | ^
44 25| else if recurse
45
46 (19 duplicate frames omitted)
47
48 … from call site
49 at /pwd/lang/eval-fail-mutual-recursion.nix:26:10:
50 25| else if recurse
51 26| then throwAfterA false 10
52 | ^
53 27| else throw "Uh oh!";
54
55 (21 duplicate frames omitted)
56
57 … while calling the 'throw' builtin
58 at /pwd/lang/eval-fail-mutual-recursion.nix:34:10:
59 33| then throwAfterB true 10
60 34| else throw "Uh oh!";
61 | ^
62 35| in
63
64 error: Uh oh!