summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/type.tl2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/type.tl b/stdlib/type.tl
index 096e7b76..f75c88e2 100644
--- a/stdlib/type.tl
+++ b/stdlib/type.tl
@@ -30,7 +30,7 @@
(tree-case cl
((type . body)
(if (symbolp type)
- ^((typep ,val ',type) ,*body)
+ ^((typep ,val ',type) ,*(or body '(nil)))
:))
(else (throwf 'eval-error
"~s: bad clause syntax: ~s"