summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMathias Fischler <Mafii@users.noreply.github.com>2023-06-24 14:18:21 +0200
committerGitHub <noreply@github.com>2023-06-24 14:18:21 +0200
commit2e03fb34cb9efd3f287b9658a8d84df52ad660dd (patch)
tree92c4fd41d98e8242cccf24aa1f34be0b0f020c7e /tests/typ
parent0de7860118d0906f26accba51f4fe83e524836d8 (diff)
Add infrastructure to enrich errors with hints (#1486)
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/compiler/hint.typ10
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