From 1f285cf5563047f236213c8eadc91324b69af42b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 4 Nov 2005 14:50:33 +0000 Subject: * Scoping bug in `with'. --- tests/lang/eval-okay-with.exp | 1 + tests/lang/eval-okay-with.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/lang/eval-okay-with.exp create mode 100644 tests/lang/eval-okay-with.nix (limited to 'tests') diff --git a/tests/lang/eval-okay-with.exp b/tests/lang/eval-okay-with.exp new file mode 100644 index 000000000..dddca4459 --- /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 000000000..ea4ea612d --- /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; +} -- cgit v1.2.3