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