Files
lix/tests/functional2/lang/rec-set-merges/in.nix
T
piegamesandCommentator2.0 51dcc6ac0d nix::parser::State::addAttr: Forbid mixed-rec merges
Fixes #350, https://github.com/NixOS/nix/issues/9020

Co-authored-by: Commentator2.0 <lix@crystal-cavern.systems>
Change-Id: If78d144dc35839b7668c0e0ad796252fcfc42ea0
2026-01-31 15:32:27 +01:00

12 lines
182 B
Nix

{
foo = {
# this attribute set is not recursive
bar = 1;
};
foo = rec {
# merging this attrset to foo.bar, discards the `rec` modifier
x = 1;
y = x;
};
}