aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-inherit-from.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang/eval-okay-inherit-from.nix')
-rw-r--r--tests/functional/lang/eval-okay-inherit-from.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/functional/lang/eval-okay-inherit-from.nix b/tests/functional/lang/eval-okay-inherit-from.nix
index d1fad7d69..b72a1c639 100644
--- a/tests/functional/lang/eval-okay-inherit-from.nix
+++ b/tests/functional/lang/eval-okay-inherit-from.nix
@@ -2,5 +2,15 @@ let
inherit (builtins.trace "used" { a = 1; b = 2; }) a b;
x.c = 3;
y.d = 4;
+
+ merged = {
+ inner = {
+ inherit (y) d;
+ };
+
+ inner = {
+ inherit (x) c;
+ };
+ };
in
- [ a b rec { x.c = []; inherit (x) c; inherit (y) d; __overrides.y.d = []; } ]
+ [ a b rec { x.c = []; inherit (x) c; inherit (y) d; __overrides.y.d = []; } merged ]