feat(tvix/eval): always emit OpForce as the last instruction

Change-Id: Id70c987f654dc5d9b47db74e395281309762b468
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6353
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-08-29 18:40:52 +03:00 committed by tazjin
parent 9a783e50a4
commit 786e12a738
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1 @@
42

View file

@ -0,0 +1,7 @@
# If a thunk yields another thunk, OpForce should keep forcing until
# there is a value.
let
a = b;
b = c;
c = 42;
in a