typst/tests/typ/bugs/2821-missing-fields.typ
2023-12-04 11:44:34 +01:00

10 lines
229 B
Typst

// Issue #2821: Setting a figure's supplement to none removes the field
// Ref: false
---
#show figure.caption: it => {
assert(it.has("supplement"))
assert(it.supplement == none)
}
#figure([], caption: [], supplement: none)