SET-FUNCALLABLE-INSTANCE-FUNCTION is user interface
[sbcl.git] / tests / mop.impure.lisp
index 6015c66..215280a 100644 (file)
                               ((instance :initform 2)
                                (class :allocation :class :initform :ok))))
                      (slot-value o 'instance))))))
+
+(defgeneric definitely-a-funcallable-instance (x))
+(with-test (:name (set-funcallable-instance-function :typechecking))
+  (assert (raises-error? (set-funcallable-instance-function
+                          (lambda (y) nil)
+                          #'definitely-a-funcallable-instance)
+                         type-error)))
 \f
 ;;;; success