about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-closure-self.nix
blob: bda364f42992ca4b5f6d6a9328059ea8f03c9d9a (plain) (tree)
1
2
3
4



                                                               
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