lix/tests/functional/lang/parse-okay-rec-set-override-warning.nix
piegames 7210ed1b87 libexpr: Soft-deprecate __overrides
Change-Id: I787e69e1dad6edc5ccdb747b74a9ccd6e8e13bb3
2024-08-21 06:55:52 +00:00

9 lines
205 B
Nix

[
# Should warn
{ a = rec {}; a.__overrides = {}; }
rec { __overrides = {}; }
# Should not warn: Not recursive
{ __overrides = {}; }
# Should not warn: Dynamic
rec { ${"__overrides" + ""} = {}; }
]