aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-scope-5.err.exp
blob: 22b6166f80319d94d5f6d6a23edc4d9ce4826dcf (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
error:
       … while evaluating the attribute 'body'

         at /pwd/lang/eval-fail-scope-5.nix:8:3:

            7|
            8|   body = f {};
             |   ^
            9|

       … from call site

         at /pwd/lang/eval-fail-scope-5.nix:8:10:

            7|
            8|   body = f {};
             |          ^
            9|

       … while calling 'f'

         at /pwd/lang/eval-fail-scope-5.nix:6:7:

            5|
            6|   f = {x ? y, y ? x}: x + y;
             |       ^
            7|

       error: infinite recursion encountered

       at /pwd/lang/eval-fail-scope-5.nix:6:12:

            5|
            6|   f = {x ? y, y ? x}: x + y;
             |            ^
            7|