X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure.lisp;h=b183624b3976a6c3c13bf6301938e66d18a4aa0f;hb=64ec717cf13c44fb4571c1fd7fbd508551ecfe01;hp=cc43bc9879e072297032fdf7b05d44b31f162bcf;hpb=e972550db41da8a21a89d0215670de70802bd3ee;p=sbcl.git diff --git a/tests/clos.impure.lisp b/tests/clos.impure.lisp index cc43bc9..b183624 100644 --- a/tests/clos.impure.lisp +++ b/tests/clos.impure.lisp @@ -720,5 +720,17 @@ :font 'baskerville :pixel-size 10) 'baskerville)) +;;; class redefinition shouldn't give any warnings, in the usual case +(defclass about-to-be-redefined () ((some-slot :accessor some-slot))) +(handler-bind ((warning #'error)) + (defclass about-to-be-redefined () ((some-slot :accessor some-slot)))) + +;;; attempts to add accessorish methods to generic functions with more +;;; complex lambda lists should fail +(defgeneric accessoroid (object &key &allow-other-keys)) +(assert (raises-error? + (defclass accessoroid-class () ((slot :accessor accessoroid))) + program-error)) + ;;;; success (sb-ext:quit :unix-status 104)