1.0.32.29: Add build flag :sb-xref-for-internals.
[sbcl.git] / src / compiler / deftype.lisp
index a0a992f..fba4c91 100644 (file)
@@ -31,7 +31,7 @@
         ;; is not availble early enough.
         (if (and (not lambda-list) (not decls) (not (cdr forms))
                  (or (member (car forms) '(t nil))
-                     (eq 'quote (caar forms))))
+                     (and (consp (car forms)) (eq 'quote (caar forms)))))
             (values `(constant-type-expander ,(car forms)) doc '(sb!c:source-location))
             (with-unique-names (whole)
               (multiple-value-bind (macro-body local-decs doc)
@@ -49,4 +49,5 @@
                             ,doc
                             ,source-location-form))
        (eval-when (:load-toplevel :execute)
-         (%deftype ',name)))))
+         (%deftype ',name))
+       ',name)))