* DEFTYPE body can be empty.
(if (and (not lambda-list) (not decls) (not (cdr forms))
(or (member (car forms) '(t nil))
(eq 'quote (caar forms))))
- (values `(constant-type-expander ,@forms) doc '(sb!c:source-location))
+ (values `(constant-type-expander ,(car forms)) doc '(sb!c:source-location))
(with-unique-names (whole)
(multiple-value-bind (macro-body local-decs doc)
(parse-defmacro lambda-list whole body name 'deftype :default-default ''*)
(assert (typep 1 'key))
(assert (typep 1 'key-singleton))
+;;; empty body
+(deftype deftype-with-empty-body ())
+(assert (subtypep 'deftype-with-empty-body nil))
+(assert (subtypep nil 'deftype-with-empty-body))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.22.11"
+"1.0.22.12"