test(tvix/eval): add tests for legacy let syntax

Change-Id: I42d6240056c93cf90986ef3fec88b42f804b06ef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6613
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-09-16 19:56:23 +03:00 committed by tazjin
parent 15c8e8c459
commit 0532cb6172
4 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1 @@
{ one = 42; two = 42; }

View file

@ -0,0 +1,9 @@
let {
a = 21;
b = body.one;
body = {
one = a * 2;
two = b;
};
}

View file

@ -0,0 +1 @@
42

View file

@ -0,0 +1,4 @@
let {
a = 21;
body = a * 2;
}