X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpcl%2Fdefclass.lisp;fp=src%2Fpcl%2Fdefclass.lisp;h=de39bc37b6b90155a3d3d8f05de240997967d3c8;hb=6a5462ff3cc3006e9b29a59c8424e81a279320c9;hp=638f56160835fdf697b90ddd7f5eeb442b636b3f;hpb=f42c1323d7248a485260619059fb5f40092abe43;p=sbcl.git diff --git a/src/pcl/defclass.lisp b/src/pcl/defclass.lisp index 638f561..de39bc3 100644 --- a/src/pcl/defclass.lisp +++ b/src/pcl/defclass.lisp @@ -234,10 +234,11 @@ (let* ((type-check-function (if (eq type t) nil - `('type-check-function (lambda (value) - (declare (type ,type value) - (optimize (sb-c:store-coverage-data 0))) - value)))) + `('type-check-function + (named-lambda (slot-typecheck ,class-name ,name) (value) + (declare (type ,type value) + (optimize (sb-c:store-coverage-data 0))) + value)))) (canon `(:name ',name :readers ',readers :writers ',writers :initargs ',initargs ,@type-check-function