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