forked from lix-project/lix
* Scoping bug in `with'.
This commit is contained in:
parent
221c79013f
commit
1f285cf556
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