0.8.12.10: Fix bug 338: "MOP specializers as type specifiers"
[sbcl.git] / tests / clos.pure.lisp
index a6a032d..b110f27 100644 (file)
                          :no-lambda-list)
                  (push gf collect)))))
           (print (nreverse collect)))))
+
+;;; Regressing test for invalid slot specification error printing
+(multiple-value-bind (value err)    
+    (ignore-errors (macroexpand '(defclass foo () (frob (frob bar)))))
+  (declare (ignore value))
+  (assert (typep err 'simple-condition))
+  (multiple-value-bind (value format-err)
+      (ignore-errors (apply #'format nil 
+                            (simple-condition-format-control err)
+                            (simple-condition-format-arguments err)))
+    (declare (ignore value))
+    (assert (not format-err))))