From 7f10d3282e85b0223efe569d1ee612eb43ab8195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20d=27Herbais=20de=20Thun?= Date: Mon, 4 Dec 2023 11:44:34 +0100 Subject: Fix defaults on `#[synthesized]` fields (#2825) Fixes #2821 --- tests/typ/bugs/2821-missing-fields.typ | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/typ/bugs/2821-missing-fields.typ (limited to 'tests') diff --git a/tests/typ/bugs/2821-missing-fields.typ b/tests/typ/bugs/2821-missing-fields.typ new file mode 100644 index 00000000..0fec2043 --- /dev/null +++ b/tests/typ/bugs/2821-missing-fields.typ @@ -0,0 +1,9 @@ +// 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) -- cgit v1.2.3