diff options
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-recursive-attrs-all-features.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-recursive-attrs-all-features.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-recursive-attrs-all-features.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-recursive-attrs-all-features.nix new file mode 100644 index 000000000000..a234705b5e53 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-recursive-attrs-all-features.nix @@ -0,0 +1,13 @@ +let a = 1; +in +(rec { + inherit a; + + b = { + c = a + 20; + }; + + inherit (b) c; + + d = c * 2; +}).d |