diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-12-04 11:44:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 11:44:34 +0100 |
| commit | 7f10d3282e85b0223efe569d1ee612eb43ab8195 (patch) | |
| tree | 4aac92ee2b5e2e905b3359bf3da24e11f5da0233 /tests/typ | |
| parent | 9926a594e7f462103b47930270a00c1b9ce3cbf3 (diff) | |
Fix defaults on `#[synthesized]` fields (#2825)
Fixes #2821
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/bugs/2821-missing-fields.typ | 9 |
1 files changed, 9 insertions, 0 deletions
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) |
