about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-11-04T14·50+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-11-04T14·50+0000
commit1f285cf5563047f236213c8eadc91324b69af42b (patch)
tree915a8daa4a775dac94a8acb373f5cf9405447937 /tests
parent221c79013f105612222cd7df3415bf63abcc7412 (diff)
* Scoping bug in `with'.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-with.exp1
-rw-r--r--tests/lang/eval-okay-with.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-with.exp b/tests/lang/eval-okay-with.exp
new file mode 100644
index 000000000000..dddca4459bfb
--- /dev/null
+++ b/tests/lang/eval-okay-with.exp
@@ -0,0 +1 @@
+Str("foobar")
diff --git a/tests/lang/eval-okay-with.nix b/tests/lang/eval-okay-with.nix
new file mode 100644
index 000000000000..ea4ea612dec3
--- /dev/null
+++ b/tests/lang/eval-okay-with.nix
@@ -0,0 +1,13 @@
+let {
+
+  a = "xyzzy";
+
+  as = {
+    a = "foo";
+    b = "bar";
+  };
+
+  x = with as; a + b;
+
+  body = x;
+}