From f4ed775df073ceeff292810f19ca8d01b054eff1 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 10 Oct 2021 12:16:28 +0200 Subject: Make `none` spreadable --- tests/typ/code/spread.typ | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/typ/code/spread.typ') diff --git a/tests/typ/code/spread.typ b/tests/typ/code/spread.typ index f1414313..4e7e0ad8 100644 --- a/tests/typ/code/spread.typ +++ b/tests/typ/code/spread.typ @@ -50,6 +50,13 @@ test(tostr(a: 1, ..more, b: 2), "(a: 1, c: 3, d: 4, b: 2)") } +--- +// None is spreadable. +#let f() = none +#f(..none) +#f(..if false {}) +#f(..for x in () []) + --- // Error: 8-14 cannot spread string #min(.."nope") -- cgit v1.2.3