aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-fail-dup-dynamic-attrs.err.exp
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-07-08 12:28:13 +0200
committerNaïm Favier <n@monade.li>2023-07-21 17:14:03 +0200
commit570a1a3ad773d93aa2128a8fba49f98e1e115d5d (patch)
tree69860a99a55cc4dc0c8cb2acfd14c3e1fcfb9378 /tests/lang/eval-fail-dup-dynamic-attrs.err.exp
parent85d0eb63165e7d7f441fe3dd94bb548a40502e52 (diff)
parser: merge nested dynamic attributes
Fixes https://github.com/NixOS/nix/issues/7115
Diffstat (limited to 'tests/lang/eval-fail-dup-dynamic-attrs.err.exp')
-rw-r--r--tests/lang/eval-fail-dup-dynamic-attrs.err.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-dup-dynamic-attrs.err.exp b/tests/lang/eval-fail-dup-dynamic-attrs.err.exp
new file mode 100644
index 000000000..e01f8e6d0
--- /dev/null
+++ b/tests/lang/eval-fail-dup-dynamic-attrs.err.exp
@@ -0,0 +1,8 @@
+error: dynamic attribute 'b' already defined at /pwd/lang/eval-fail-dup-dynamic-attrs.nix:2:11
+
+ at /pwd/lang/eval-fail-dup-dynamic-attrs.nix:3:11:
+
+ 2| set = { "${"" + "b"}" = 1; };
+ 3| set = { "${"b" + ""}" = 2; };
+ | ^
+ 4| }