aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-attrs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-okay-attrs.nix')
-rw-r--r--test/testdata/eval-okay-attrs.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-attrs.nix b/test/testdata/eval-okay-attrs.nix
new file mode 100644
index 0000000..810b31a
--- /dev/null
+++ b/test/testdata/eval-okay-attrs.nix
@@ -0,0 +1,5 @@
1let {
2 as = { x = 123; y = 456; } // { z = 789; } // { z = 987; };
3
4 body = if as ? a then as.a else assert as ? z; as.z;
5}