lix/tests/functional/lang/eval-okay-attrs2.nix
piegames 0a8888d1c7 treewide: Stop using ancient let syntax
Shows for how long these tests have not been touched by anyone …

Change-Id: I3d0c1209a86283ddb012db4e7d45073264fdd0eb
2024-08-21 06:55:52 +00:00

12 lines
206 B
Nix

let
as = { x = 123; y = 456; } // { z = 789; } // { z = 987; };
A = "a";
Z = "z";
in
if builtins.hasAttr A as then
builtins.getAttr A as
else
assert builtins.hasAttr Z as; builtins.getAttr Z as