1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/tests/functional/lang/eval-okay-attrs2.nix
2025-08-18 20:29:45 +03:00

22 lines
265 B
Nix

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;
}