X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fmop.impure.lisp;h=c362778563bda5797d3376f738b2f020ed42f5aa;hb=f16e93459cd73b1884e3d576c95e422f8e8a000e;hp=765d222a6b407f3a10e4743eb0ceedf93c52ad5f;hpb=09702467ab16baab34dc209606d9d07af38eaedd;p=sbcl.git diff --git a/tests/mop.impure.lisp b/tests/mop.impure.lisp index 765d222..c362778 100644 --- a/tests/mop.impure.lisp +++ b/tests/mop.impure.lisp @@ -515,9 +515,16 @@ ;;; ensure-class got its treatment of :metaclass wrong. (ensure-class 'better-be-standard-class :direct-superclasses '(standard-object) - :metaclass 'standard-class + :metaclass 'standard-class :metaclass 'funcallable-standard-class) (assert (eq (class-of (find-class 'better-be-standard-class)) (find-class 'standard-class))) + +;;; CLASS-SLOTS should signal an error for classes that are not yet +;;; finalized. Reported by Levente Meszaros on sbcl-devel. +(defclass has-slots-but-isnt-finalized () (a b c)) +(let ((class (find-class 'has-slots-but-isnt-finalized))) + (assert (not (sb-mop:class-finalized-p class))) + (assert (raises-error? (sb-mop:class-slots class) sb-kernel::reference-condition))) ;;;; success