From dca43ef795c0589d47620241823393c739b99498 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 2 May 2006 11:15:04 +0000 Subject: * Tests for NIX-45. --- tests/lang/eval-fail-scope-5.nix | 10 ++++++++++ tests/lang/eval-okay-scope-4.exp | 1 + tests/lang/eval-okay-scope-4.nix | 10 ++++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/lang/eval-fail-scope-5.nix create mode 100644 tests/lang/eval-okay-scope-4.exp create mode 100644 tests/lang/eval-okay-scope-4.nix diff --git a/tests/lang/eval-fail-scope-5.nix b/tests/lang/eval-fail-scope-5.nix new file mode 100644 index 000000000000..dc8243bc8546 --- /dev/null +++ b/tests/lang/eval-fail-scope-5.nix @@ -0,0 +1,10 @@ +let { + + x = "a"; + y = "b"; + + f = {x ? y, y ? x}: x + y; + + body = f {x = "c";} + f {y = "d";}; + +} diff --git a/tests/lang/eval-okay-scope-4.exp b/tests/lang/eval-okay-scope-4.exp new file mode 100644 index 000000000000..e2c962c9588a --- /dev/null +++ b/tests/lang/eval-okay-scope-4.exp @@ -0,0 +1 @@ +Str("ccdd") 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";}; + +} -- cgit 1.4.1