about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/eval-okay-with.nix
blob: 033e8d3aba57d0306e4cd4f665e34b355f1b1c08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let {

  a = "xyzzy";

  as = {
    a = "foo";
    b = "bar";
  };

  bs = {
    a = "bar";
  };

  x = with as; a + b;

  y = with as; with bs; a + b;

  body = x + y;
}