diff options
Diffstat (limited to 'test/testdata/eval-okay-inherit-from.nix')
-rw-r--r-- | test/testdata/eval-okay-inherit-from.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-inherit-from.nix b/test/testdata/eval-okay-inherit-from.nix new file mode 100644 index 0000000..b72a1c6 --- /dev/null +++ b/test/testdata/eval-okay-inherit-from.nix | |||
@@ -0,0 +1,16 @@ | |||
1 | let | ||
2 | inherit (builtins.trace "used" { a = 1; b = 2; }) a b; | ||
3 | x.c = 3; | ||
4 | y.d = 4; | ||
5 | |||
6 | merged = { | ||
7 | inner = { | ||
8 | inherit (y) d; | ||
9 | }; | ||
10 | |||
11 | inner = { | ||
12 | inherit (x) c; | ||
13 | }; | ||
14 | }; | ||
15 | in | ||
16 | [ a b rec { x.c = []; inherit (x) c; inherit (y) d; __overrides.y.d = []; } merged ] | ||