X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fclos.impure.lisp;h=b6db2a7126d3a73f2d3465789608f8142f326cfe;hb=HEAD;hp=bff25d88bea45b3cd6ce8d6f4c951f8a7f0e60c4;hpb=5728601f88c400d2992b6b8c70d8971d07de9029;p=sbcl.git diff --git a/tests/clos.impure.lisp b/tests/clos.impure.lisp index bff25d8..b6db2a7 100644 --- a/tests/clos.impure.lisp +++ b/tests/clos.impure.lisp @@ -2119,4 +2119,17 @@ (and fasl (delete-file fasl)))) (test-load "bug-503095-2.lisp"))) +(with-test (:name :accessor-and-plain-method) + (defclass a-633911 () + ((x-633911 :initform nil + :accessor x-633911))) + + (defmethod x-633911 ((b a-633911)) 10) + + (defclass b-633911 () + ((x-633911 :initform nil + :accessor x-633911))) + + (assert (= (x-633911 (make-instance 'a-633911)) 10))) + ;;;; success