From 0a8888d1c7220eddba40895a9c6c63d06edf4614 Mon Sep 17 00:00:00 2001 From: piegames Date: Sun, 18 Aug 2024 17:28:04 +0200 Subject: treewide: Stop using ancient let syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows for how long these tests have not been touched by anyone … Change-Id: I3d0c1209a86283ddb012db4e7d45073264fdd0eb --- tests/functional/lang/eval-okay-attrs2.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/functional/lang/eval-okay-attrs2.nix') diff --git a/tests/functional/lang/eval-okay-attrs2.nix b/tests/functional/lang/eval-okay-attrs2.nix index 9e06b83ac..925dc1859 100644 --- a/tests/functional/lang/eval-okay-attrs2.nix +++ b/tests/functional/lang/eval-okay-attrs2.nix @@ -1,10 +1,11 @@ -let { +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; -} +in +if builtins.hasAttr A as then + builtins.getAttr A as +else + assert builtins.hasAttr Z as; builtins.getAttr Z as -- cgit v1.2.3