about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-nested-has-attrs.nix
blob: 47dcec7a95f4b12f4420f71dc144f3a998567606 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
let
  set = {
    a.b.c = 123;
    foo = {
      bar = 23;
    };
    baz = 1;
  };

  tes = "random value";
in

[
  (set ? a)
  (set ? a.b)
  (set ? a.b.c)
  (set ? foo)
  (set ? foo.bar)
  (set.foo ? bar)
  (set ? baz)
  (set ? x)
  (set ? x.y.z)
  (tes ? bar)
  (tes ? x.y.z)
  (null ? null)
]