From 2e03fb34cb9efd3f287b9658a8d84df52ad660dd Mon Sep 17 00:00:00 2001 From: Mathias Fischler Date: Sat, 24 Jun 2023 14:18:21 +0200 Subject: Add infrastructure to enrich errors with hints (#1486) --- tests/typ/compiler/hint.typ | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/typ') 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 -// 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 +// Error: 1:20-1:26 cannot reference heading without numbering Can not be used as @intro -- cgit v1.2.3