Files
lix/tests/functional2/lang/rec-set-merges/parse-fail-2.err.exp
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

7 lines
485 B
Plaintext

error: attribute 'foo' cannot be merged, because one set is marked as recursive and the other isn't. Use --extra-deprecated-features rec-set-merges to disable this error and make the expression parse as-is with implementation-defined semantics.
at /pwd/in.nix:4:9:
3| # ^~~ we are implicitly creating a non-recursive attrset
4| foo = rec {
| ^
5| # merging this attrset to foo.bar, discards the `rec` modifier