about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/notyetpassing/eval-okay-cycle-display-cpp-nix-2.13.nix
blob: ac849a58fe50eb3db430adc3fa2c8bf90b0c488c (plain) (tree)


















                     


                      











                                                                                     
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)
]