diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-02 11:15:04 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-02 11:15:04 +0000 |
commit | dca43ef795c0589d47620241823393c739b99498 (patch) | |
tree | 487efb83550c014333e9cc8b136a516bfec23bf2 /tests/lang | |
parent | 7276e194eefc807600e1dcd10566a57e557ed1ad (diff) |
* Tests for NIX-45.
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-fail-scope-5.nix | 10 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-4.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-4.nix | 10 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-scope-5.nix b/tests/lang/eval-fail-scope-5.nix new file mode 100644 index 000000000..dc8243bc8 --- /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 000000000..e2c962c95 --- /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 000000000..dc8243bc8 --- /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";}; + +} |