diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-09 10:50:25 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-09 10:50:25 +0200 |
| commit | 9950627789358b4d46c7fd8ba20d1428aee7bf01 (patch) | |
| tree | 9cad73f1f7abe6b6768575776d0c3cd1af8c6c33 /tests/typ/code/ops-invalid.typ | |
| parent | 4fb58acafde3ca7020a980bd1e0a3585a47ca4f0 (diff) | |
Even shorter error annotations
Error annotations are now relative to the first following non-comment line.
Diffstat (limited to 'tests/typ/code/ops-invalid.typ')
| -rw-r--r-- | tests/typ/code/ops-invalid.typ | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ index 4090554c..149a60dd 100644 --- a/tests/typ/code/ops-invalid.typ +++ b/tests/typ/code/ops-invalid.typ @@ -25,14 +25,14 @@ // Error: 2-8 cannot apply 'not' to array {not ()} -// Error: 1:2-1:12 cannot apply '<=' to relative and relative +// Error: 2-12 cannot apply '<=' to relative and relative {30% <= 40%} // Special messages for +, -, * and /. -// Error: 4:03-4:10 cannot add integer and string -// Error: 3:12-3:19 cannot subtract integer from relative -// Error: 2:21-2:29 cannot multiply integer with boolean -// Error: 1:31-1:39 cannot divide integer by length +// Error: 03-10 cannot add integer and string +// Error: 12-19 cannot subtract integer from relative +// Error: 21-29 cannot multiply integer with boolean +// Error: 31-39 cannot divide integer by length {(1 + "2", 40% - 1, 2 * true, 3 / 12pt)} // Error: 14-22 cannot apply '+=' to integer and string |
