summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/code/spread.typ7
1 files changed, 7 insertions, 0 deletions
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
@@ -51,6 +51,13 @@
}
---
+// None is spreadable.
+#let f() = none
+#f(..none)
+#f(..if false {})
+#f(..for x in () [])
+
+---
// Error: 8-14 cannot spread string
#min(.."nope")