2024-08-18 15:28:04 +00:00
|
|
|
let
|
2006-09-22 14:31:55 +00:00
|
|
|
as = { x = 123; y = 456; } // { z = 789; } // { z = 987; };
|
|
|
|
|
|
|
|
A = "a";
|
|
|
|
Z = "z";
|
|
|
|
|
2024-08-18 15:28:04 +00:00
|
|
|
in
|
|
|
|
if builtins.hasAttr A as then
|
|
|
|
builtins.getAttr A as
|
|
|
|
else
|
|
|
|
assert builtins.hasAttr Z as; builtins.getAttr Z as
|