mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
* Scoping bug in `with'.
This commit is contained in:
parent
221c79013f
commit
1f285cf556
2 changed files with 14 additions and 0 deletions
1
tests/lang/eval-okay-with.exp
Normal file
1
tests/lang/eval-okay-with.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Str("foobar")
|
13
tests/lang/eval-okay-with.nix
Normal file
13
tests/lang/eval-okay-with.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
let {
|
||||
|
||||
a = "xyzzy";
|
||||
|
||||
as = {
|
||||
a = "foo";
|
||||
b = "bar";
|
||||
};
|
||||
|
||||
x = with as; a + b;
|
||||
|
||||
body = x;
|
||||
}
|
Loading…
Reference in a new issue