aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/useless_has_attr.nix
blob: f4c9fd5a2392e174730df9870b0c57fbf53ce0da (plain)
1
2
3
4
5
6
7
8
9
[
  # trivial
  (if x ? a then x.a else default)
  (if x.a ? b then x.a.b else default)
  (if x ? a.b then x.a.b else default)

  # complex body
  (if x ? a then x.a else if b then c else d)
]