summaryrefslogtreecommitdiff
path: root/tests/typ/code/dict.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-11 16:11:16 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-11 16:11:16 +0200
commitcd62792c0aefffe8b0a5c7fc76e95dfa7b86a181 (patch)
tree5fdc0b4f3422eb8bc7cdb06fce8829d32ef6c9e3 /tests/typ/code/dict.typ
parent938b0af889b8fbe6265695b1b8e54aee338ba87f (diff)
Prevent duplicate named arguments and dictionary keys
Diffstat (limited to 'tests/typ/code/dict.typ')
-rw-r--r--tests/typ/code/dict.typ4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/typ/code/dict.typ b/tests/typ/code/dict.typ
index b369b8b6..aa840eb3 100644
--- a/tests/typ/code/dict.typ
+++ b/tests/typ/code/dict.typ
@@ -36,6 +36,10 @@
}
---
+// Error: 24-32 pair has duplicate key
+{(first: 1, second: 2, first: 3)}
+
+---
// Simple expression after already being identified as a dictionary.
// Error: 9-10 expected named pair, found expression
{(a: 1, b)}