diff options
| author | Mathias Fischler <Mafii@users.noreply.github.com> | 2023-06-24 14:18:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-24 14:18:21 +0200 |
| commit | 2e03fb34cb9efd3f287b9658a8d84df52ad660dd (patch) | |
| tree | 92c4fd41d98e8242cccf24aa1f34be0b0f020c7e /tests/typ/compiler | |
| parent | 0de7860118d0906f26accba51f4fe83e524836d8 (diff) | |
Add infrastructure to enrich errors with hints (#1486)
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/hint.typ | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/typ/compiler/hint.typ b/tests/typ/compiler/hint.typ index 981c954f..19d233d0 100644 --- a/tests/typ/compiler/hint.typ +++ b/tests/typ/compiler/hint.typ @@ -23,5 +23,13 @@ --- = Heading <intro> -// Error: 1:20-1:26 cannot reference heading without numbering - did you mean to use `#set heading(numbering: "1.")`? +// Error: 1:20-1:26 cannot reference heading without numbering +// Hint: 1:20-1:26 did you mean to use `#set heading(numbering: "1.")`? +Can not be used as @intro + +--- +// Hints: false +// This test is more of a tooling test. It checks if hint annotation validation can be turned off. += Heading <intro> +// Error: 1:20-1:26 cannot reference heading without numbering Can not be used as @intro |
