about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-16T16·56+0300
committertazjin <tazjin@tvl.su>2022-09-16T18·13+0000
commit0532cb61720355f5917c467440eb2b3cb297f2ba (patch)
tree3a713f050fd83859c7085a7f13d590826156ad66 /tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix
parent15c8e8c459c723c3e3c0c5fbfb0ed581b6521340 (diff)
test(tvix/eval): add tests for legacy let syntax r/4879
Change-Id: I42d6240056c93cf90986ef3fec88b42f804b06ef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6613
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix
new file mode 100644
index 000000000000..87fcffadee5f
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let-fix.nix
@@ -0,0 +1,9 @@
+let {
+  a = 21;
+  b = body.one;
+
+  body = {
+    one = a * 2;
+    two = b;
+  };
+}