aboutsummaryrefslogtreecommitdiff
path: root/bin/tests/data/useless_has_attr.nix
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests/data/useless_has_attr.nix')
-rw-r--r--bin/tests/data/useless_has_attr.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/tests/data/useless_has_attr.nix b/bin/tests/data/useless_has_attr.nix
new file mode 100644
index 0000000..f4c9fd5
--- /dev/null
+++ b/bin/tests/data/useless_has_attr.nix
@@ -0,0 +1,9 @@
1[
2 # trivial
3 (if x ? a then x.a else default)
4 (if x.a ? b then x.a.b else default)
5 (if x ? a.b then x.a.b else default)
6
7 # complex body
8 (if x ? a then x.a else if b then c else d)
9]