X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fdeftype.lisp;h=fba4c91f2017a65430f9df427bcf0e5c10695cb0;hb=95591ed483dbb8c0846c129953acac1554f28809;hp=a0a992f838fde283d03295609bb75ffcdc4a4b88;hpb=aa1a5c6ea31c248587d78f62943ad749ea8fbe2f;p=sbcl.git diff --git a/src/compiler/deftype.lisp b/src/compiler/deftype.lisp index a0a992f..fba4c91 100644 --- a/src/compiler/deftype.lisp +++ b/src/compiler/deftype.lisp @@ -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)))