diff options
author | Vincent Ambo <mail@tazj.in> | 2022-08-28T16·40+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-06T14·58+0000 |
commit | 70b27a608090b29b6ae8e455d8f18c7099b2b39d (patch) | |
tree | f8011925ac6d5d5d6a6c6af63a5a72e246647012 /tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix | |
parent | 24811d76558a73b3d6f615d458aded0b9c690840 (diff) |
test(tvix/eval): add a test case for nested, deferred upvalues r/4671
This test case was previously broken by the bug introduced by confusing local and stack indexes. Change-Id: Ibef299dad266c6105deac1da5dde112fe9f640b1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6341 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix new file mode 100644 index 000000000000..358925e992c7 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-nested-deferred-upvalue.nix @@ -0,0 +1,6 @@ +let + doubler = n: outer n; + outer = let inner = n: a * n; + a = 2; + in inner; +in doubler 10 |