(in-package "MOP-TEST")
\f
+;;; Readers for Class Metaobjects (pp. 212--214 of AMOP)
+(defclass red-herring (forward-ref) ())
+
+(assert (null (sb-pcl:class-direct-slots (sb-pcl:find-class 'forward-ref))))
+(assert (null (sb-pcl:class-direct-default-initargs
+ (sb-pcl:find-class 'forward-ref))))
+\f
;;; Readers for Generic Function Metaobjects (pp. 216--218 of AMOP)
(defgeneric fn-with-odd-arg-precedence (a b c)
(:argument-precedence-order b c a))
(make-instance 'finalization-test-2)
(assert (= (get-count) 3))
\f
+;;; Bits of FUNCALLABLE-STANDARD-CLASS are easy to break; make sure
+;;; that it is at least possible to define classes with that as a
+;;; metaclass.
+(defclass gf-class (standard-generic-function) ()
+ (:metaclass sb-pcl::funcallable-standard-class))
+(defgeneric g (a b c)
+ (:generic-function-class gf-class))
+\f
;;;; success
(sb-ext:quit :unix-status 104)