about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-tojson-thunks.nix
blob: 16234ab4514aa16c7a16dbf45d642763e0ab1218 (plain) (blame)
1
2
3
4
5
6
7
8
9
let
  a = b * 2;
  b = 21;
in
builtins.toJSON [
  a
  ((n: n * 2) 21)
  (builtins.toJSON a)
]