about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-18T17·18+0300
committertazjin <tazjin@tvl.su>2022-09-18T22·16+0000
commitbcbe1603c8d50b69705fb737961b6a4827a50591 (patch)
treeeeb5ceb378e8a3d2a6032ac2ac0476ab8f670281 /tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix
parentd42d8f3089c524cfa9e2fc332a81af5c0686db8d (diff)
fix(tvix/eval): ensure all thunks are forced in nested selects r/4913
Previously only the first one was guaranteed to be forced, but we need
to do this for all of them.

Fixes b/190

Change-Id: I76b5667dbfb2f3fde3587e7b91d268cbf32aca00
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6645
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix
new file mode 100644
index 000000000000..f3ad8293540f
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-nested-set-thunks.nix
@@ -0,0 +1,5 @@
+({
+  x = {
+    y = 42;
+  };
+}).x.y