diff options
-rw-r--r-- | tests/lang/eval-fail-scope-5.nix | 2 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-6.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-6.nix | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/lang/eval-fail-scope-5.nix b/tests/lang/eval-fail-scope-5.nix index dc8243bc8..f89a65a99 100644 --- a/tests/lang/eval-fail-scope-5.nix +++ b/tests/lang/eval-fail-scope-5.nix @@ -5,6 +5,6 @@ let { f = {x ? y, y ? x}: x + y; - body = f {x = "c";} + f {y = "d";}; + body = f {}; } diff --git a/tests/lang/eval-okay-scope-6.exp b/tests/lang/eval-okay-scope-6.exp new file mode 100644 index 000000000..e2c962c95 --- /dev/null +++ b/tests/lang/eval-okay-scope-6.exp @@ -0,0 +1 @@ +Str("ccdd") diff --git a/tests/lang/eval-okay-scope-6.nix b/tests/lang/eval-okay-scope-6.nix new file mode 100644 index 000000000..0995d4e7e --- /dev/null +++ b/tests/lang/eval-okay-scope-6.nix @@ -0,0 +1,7 @@ +let { + + f = {x ? y, y ? x}: x + y; + + body = f {x = "c";} + f {y = "d";}; + +} |