aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-okay-with.nix
blob: a17d0e7b9f9d43b935bf097454c5e62a0873c909 (plain)
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;

in
x + y