aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/useless_has_attr.nix
blob: 10966acb274fe2f75a158aa3eee4fc860805a69b (plain)
1
2
3
4
5
6
7
8
9
10
[
  # 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)
  (if x ? a then x.a else b.c)
]