typst/tests/typ/compiler/delayed-error.typ
2024-02-21 14:11:35 +00:00

12 lines
245 B
Typst

// Test that errors in show rules are delayed: There can be multiple at once.
---
// Error: 21-34 panicked with: "hey1"
#show heading: _ => panic("hey1")
// Error: 20-33 panicked with: "hey2"
#show strong: _ => panic("hey2")
= Hello
*strong*