0.pre8.8:
[sbcl.git] / tests / clos.impure-cload.lisp
index b5c96f0..121e0db 100644 (file)
 (class-allocation-writer 4)
 (assert (= (class-allocation-reader) 4))
 \f
+;;; from James Anderson via Gerd Moellmann: defining methods with
+;;; forward-referenced specializers used not to work (FIXME: and also
+;;; calling said method with an instance of something else
+;;; [SPECIALIZER1, here] should work -- patch forthcoming)
+(defclass specializer1 () ())
+(defclass specializer2 (forward-ref1) ())
+(defmethod baz ((x specializer2)) x)
+(defmethod baz ((x specializer1)) x)
+\f
 ;;; success
 (sb-ext:quit :unix-status 104)
\ No newline at end of file