summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-05 10:56:09 +0100
committerGitHub <noreply@github.com>2024-02-05 09:56:09 +0000
commit302b87032121125bcfdb0490ad865a585ee0e3aa (patch)
tree6f4a9eeadb1d13f4de809dcfcf6732024a334374 /tests
parent6a9866dc80fefd5cd32e1432c4e95d3a834c3886 (diff)
Delay errors for all show rules (#3323)
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/compiler/delayed-error.typ11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/typ/compiler/delayed-error.typ b/tests/typ/compiler/delayed-error.typ
new file mode 100644
index 00000000..c0bfba4c
--- /dev/null
+++ b/tests/typ/compiler/delayed-error.typ
@@ -0,0 +1,11 @@
+// Test that errors in show rules are delayed: There can be multiple at once.
+
+---
+// Error: 26-34 panicked with: "hey1"
+#show heading: _ => panic("hey1")
+
+// Error: 25-33 panicked with: "hey2"
+#show strong: _ => panic("hey2")
+
+= Hello
+*strong*