about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-merge-nested-rec-attrs.nix
blob: cea4cb1b4f0d918a292dfeeebb78637b9071b22c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{
  set = rec {
    a = 21;
  };

  set = {
    # Fun fact: This might be the only case in Nix where a lexical
    # resolution of an identifier can only be resolved by looking at
    # *siblings* in the AST.
    b = 2 * a;
  };
}