test(tvix/eval): add some tests for recursive attribute sets

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

View file

@ -0,0 +1,13 @@
let a = 1;
in
(rec {
inherit a;
b = {
c = a + 20;
};
inherit (b) c;
d = c * 2;
}).d

View file

@ -0,0 +1,4 @@
(rec {
a = 21;
b = a * 2;
}).b