aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-mutual-recursion.err.exp
blob: c034afcd5e01be6ac364bf9bc3f02384a199c977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
error:
       … from call site
         at /pwd/lang/eval-fail-mutual-recursion.nix:36:3:
           35| in
           36|   throwAfterA true 10
             |   ^
           37|

       … while calling 'throwAfterA'
         at /pwd/lang/eval-fail-mutual-recursion.nix:29:26:
           28|
           29|   throwAfterA = recurse: n:
             |                          ^
           30|     if n > 0

       … from call site
         at /pwd/lang/eval-fail-mutual-recursion.nix:31:10:
           30|     if n > 0
           31|     then throwAfterA recurse (n - 1)
             |          ^
           32|     else if recurse

       (19 duplicate frames omitted)

       … from call site
         at /pwd/lang/eval-fail-mutual-recursion.nix:33:10:
           32|     else if recurse
           33|     then throwAfterB true 10
             |          ^
           34|     else throw "Uh oh!";

       … while calling 'throwAfterB'
         at /pwd/lang/eval-fail-mutual-recursion.nix:22:26:
           21| let
           22|   throwAfterB = recurse: n:
             |                          ^
           23|     if n > 0

       … from call site
         at /pwd/lang/eval-fail-mutual-recursion.nix:24:10:
           23|     if n > 0
           24|     then throwAfterB recurse (n - 1)
             |          ^
           25|     else if recurse

       (19 duplicate frames omitted)

       … from call site
         at /pwd/lang/eval-fail-mutual-recursion.nix:26:10:
           25|     else if recurse
           26|     then throwAfterA false 10
             |          ^
           27|     else throw "Uh oh!";

       (21 duplicate frames omitted)

       … while calling the 'throw' builtin
         at /pwd/lang/eval-fail-mutual-recursion.nix:34:10:
           33|     then throwAfterB true 10
           34|     else throw "Uh oh!";
             |          ^
           35| in

       error: Uh oh!