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:
parent
e86acd3212
commit
15c8e8c459
4 changed files with 19 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
42
|
|
@ -0,0 +1,13 @@
|
|||
let a = 1;
|
||||
in
|
||||
(rec {
|
||||
inherit a;
|
||||
|
||||
b = {
|
||||
c = a + 20;
|
||||
};
|
||||
|
||||
inherit (b) c;
|
||||
|
||||
d = c * 2;
|
||||
}).d
|
|
@ -0,0 +1 @@
|
|||
42
|
|
@ -0,0 +1,4 @@
|
|||
(rec {
|
||||
a = 21;
|
||||
b = a * 2;
|
||||
}).b
|
Loading…
Reference in a new issue