aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/useless_parens.nix
blob: cf2644164baebc0192102b4fc8d9fe9d55308007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
let
  # parens around primitives
  a = {
    b = ("hello");
    c = (d);
    e = ({ f = 2; });
  };

  # parens around let-value
  g = (1 + 2);
  h = ({ inherit i; });

  # TODO: binary exprs, function args etc.
in
  # parens around let body
  (null)