about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/notyetpassing/eval-okay-cycle-display-cpp-nix-2.13.nix
blob: bd3b1429cef3267b809d681993936f3202b09ca8 (plain) (blame)
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
let
  linkedList = {
    car = 42;
    cdr = linkedList;
  };

  list = [
    linkedList
    linkedList
    linkedList
  ];

  set = {
    val = 42;
    wal = set;
    xal = set;
  };

  multiTail = {
   val = 42;
   tail1 = multiTail;
   tail2 = multiTail;
  };
in

[
  linkedList
  list
  set

  # In C++ Nix 2.3 these would be displayed differently
  multiTail
  (let multiTail = { val = 21; tail1 = multiTail; tail2 = multiTail; }; in multiTail)
]