about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-closure-self.nix
blob: 7be666000961b9a8823a952867b911a53c0f3ad0 (plain) (blame)
1
2
3
4
5
let
  # self-recursive function should be able to close over itself
  f = n: if n <= 0 then "done" else f (n - 1);
in
f 10