aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-with.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-okay-with.nix')
-rw-r--r--test/testdata/eval-okay-with.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-with.nix b/test/testdata/eval-okay-with.nix
new file mode 100644
index 0000000..033e8d3
--- /dev/null
+++ b/test/testdata/eval-okay-with.nix
@@ -0,0 +1,19 @@
1let {
2
3 a = "xyzzy";
4
5 as = {
6 a = "foo";
7 b = "bar";
8 };
9
10 bs = {
11 a = "bar";
12 };
13
14 x = with as; a + b;
15
16 y = with as; with bs; a + b;
17
18 body = x + y;
19}