From 570a1a3ad773d93aa2128a8fba49f98e1e115d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sat, 8 Jul 2023 12:28:13 +0200 Subject: parser: merge nested dynamic attributes Fixes https://github.com/NixOS/nix/issues/7115 --- tests/lang/eval-okay-merge-dynamic-attrs.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/lang/eval-okay-merge-dynamic-attrs.nix (limited to 'tests/lang/eval-okay-merge-dynamic-attrs.nix') diff --git a/tests/lang/eval-okay-merge-dynamic-attrs.nix b/tests/lang/eval-okay-merge-dynamic-attrs.nix new file mode 100644 index 000000000..f459a554f --- /dev/null +++ b/tests/lang/eval-okay-merge-dynamic-attrs.nix @@ -0,0 +1,13 @@ +{ + set1 = { a = 1; }; + set1 = { "${"b" + ""}" = 2; }; + + set2 = { "${"b" + ""}" = 2; }; + set2 = { a = 1; }; + + set3.a = 1; + set3."${"b" + ""}" = 2; + + set4."${"b" + ""}" = 2; + set4.a = 1; +} -- cgit v1.2.3