aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/unquoted_splices.nix
blob: 30935b080fa0d1c7489c04e5e1ba1744320ca0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let
  x = 2;
  y = 3;
  a = { "2" = y; };
in
[
  ${x}
  ${toString (x + y)}
  a.${toString x}

  # multiline test
  ${
    toString x
  }
]