about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/eval-okay-scope-6.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/tests/lang/eval-okay-scope-6.nix')
-rw-r--r--third_party/nix/src/tests/lang/eval-okay-scope-6.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/eval-okay-scope-6.nix b/third_party/nix/src/tests/lang/eval-okay-scope-6.nix
new file mode 100644
index 000000000000..0995d4e7e7e0
--- /dev/null
+++ b/third_party/nix/src/tests/lang/eval-okay-scope-6.nix
@@ -0,0 +1,7 @@
+let {
+
+  f = {x ? y, y ? x}: x + y;
+
+  body = f {x = "c";} + f {y = "d";};
+
+}