* Tests for NIX-45.
This commit is contained in:
parent
7276e194ee
commit
dca43ef795
3 changed files with 21 additions and 0 deletions
10
tests/lang/eval-fail-scope-5.nix
Normal file
10
tests/lang/eval-fail-scope-5.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
let {
|
||||
|
||||
x = "a";
|
||||
y = "b";
|
||||
|
||||
f = {x ? y, y ? x}: x + y;
|
||||
|
||||
body = f {x = "c";} + f {y = "d";};
|
||||
|
||||
}
|
1
tests/lang/eval-okay-scope-4.exp
Normal file
1
tests/lang/eval-okay-scope-4.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Str("ccdd")
|
10
tests/lang/eval-okay-scope-4.nix
Normal file
10
tests/lang/eval-okay-scope-4.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
let {
|
||||
|
||||
x = "a";
|
||||
y = "b";
|
||||
|
||||
f = {x ? y, y ? x}: x + y;
|
||||
|
||||
body = f {x = "c";} + f {y = "d";};
|
||||
|
||||
}
|
Loading…
Reference in a new issue