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-attrs.nix
2025-08-18 20:29:45 +03:00

19 lines
178 B
Nix

let {
as = {
x = 123;
y = 456;
}
// {
z = 789;
}
// {
z = 987;
};
body =
if as ? a then
as.a
else
assert as ? z;
as.z;
}