about summary refs log tree commit diff
path: root/third_party/nix/tests/lang/eval-okay-scope-7.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/lang/eval-okay-scope-7.nix')
-rw-r--r--third_party/nix/tests/lang/eval-okay-scope-7.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/nix/tests/lang/eval-okay-scope-7.nix b/third_party/nix/tests/lang/eval-okay-scope-7.nix
new file mode 100644
index 000000000000..4da02968f6b7
--- /dev/null
+++ b/third_party/nix/tests/lang/eval-okay-scope-7.nix
@@ -0,0 +1,6 @@
+rec {
+  inherit (x) y;
+  x = {
+    y = 1;
+  };
+}.y