diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-11 16:11:16 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-11 16:11:16 +0200 |
| commit | cd62792c0aefffe8b0a5c7fc76e95dfa7b86a181 (patch) | |
| tree | 5fdc0b4f3422eb8bc7cdb06fce8829d32ef6c9e3 /tests/typ/code | |
| parent | 938b0af889b8fbe6265695b1b8e54aee338ba87f (diff) | |
Prevent duplicate named arguments and dictionary keys
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/call.typ | 4 | ||||
| -rw-r--r-- | tests/typ/code/dict.typ | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ index 51ef1df5..55471774 100644 --- a/tests/typ/code/call.typ +++ b/tests/typ/code/call.typ @@ -45,6 +45,10 @@ } --- +// Error: 28-47 duplicate argument +#set text(family: "Arial", family: "Helvetica") + +--- // Error: 2-6 expected callable or collection, found boolean {true()} 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)} |
