0.pre7.98:
[sbcl.git] / src / pcl / compiler-support.lisp
index 2cfa67d..56fc271 100644 (file)
     (cond
       ;; Flush tests whose result is known at compile time.
       ((csubtypep otype std-obj) t)
-      ((not (types-intersect otype std-obj)) nil)
+      ((not (types-equal-or-intersect otype std-obj)) nil)
       (t
        `(typep (sb-kernel:layout-of object) 'sb-pcl::wrapper)))))
 
-(def-source-context defmethod (name &rest stuff)
+(define-source-context defmethod (name &rest stuff)
   (let ((arg-pos (position-if #'listp stuff)))
     (if arg-pos
        `(defmethod ,name ,@(subseq stuff 0 arg-pos)