tvl-depot/tvix/eval/src/tests/tvix_tests/eval-okay-lazy-assert.nix
sterni 240d90aa8a fix(tvix/eval): wrap asserts in a thunk
As the new test case demonstrates, asserts need to be evaluated lazily.

Change-Id: I808046722c5a504e9497855ca5026d255c7a4c34
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6494
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
2022-09-11 12:26:23 +00:00

8 lines
75 B
Nix

assert true;
let
x = assert false; 13;
y = 12;
in
{ inherit x y; }.y