From ba61dfd69504ec6263a9dee9931d93adeb6f3142 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 7 Jul 2025 21:52:08 +0200 Subject: Initialize repository --- test/testdata/eval-okay-attrs2.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/testdata/eval-okay-attrs2.nix (limited to 'test/testdata/eval-okay-attrs2.nix') diff --git a/test/testdata/eval-okay-attrs2.nix b/test/testdata/eval-okay-attrs2.nix new file mode 100644 index 0000000..9e06b83 --- /dev/null +++ b/test/testdata/eval-okay-attrs2.nix @@ -0,0 +1,10 @@ +let { + as = { x = 123; y = 456; } // { z = 789; } // { z = 987; }; + + A = "a"; + Z = "z"; + + body = if builtins.hasAttr A as + then builtins.getAttr A as + else assert builtins.hasAttr Z as; builtins.getAttr Z as; +} -- cgit v1.2.3