X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.pure.lisp;h=46a4bd643d3f20fa183d86a80a4f50b41450a5c3;hb=f4820c2cd6eb6af8f21312e2e2ca19af42de4be6;hp=31f8688c16e915a317b61caab34776cb76e0fde2;hpb=1f1ffa37f8eed97c92c55b25f200e27940ef9d9e;p=sbcl.git diff --git a/tests/type.pure.lisp b/tests/type.pure.lisp index 31f8688..46a4bd6 100644 --- a/tests/type.pure.lisp +++ b/tests/type.pure.lisp @@ -364,3 +364,19 @@ ACTUAL ~D DERIVED ~D~%" (unless (member char chars) (assert (not (typep char type))) (assert (typep char not-type))))))))) + +(with-test (:name (:check-type :store-value :complex-place)) + (let ((a (cons 0.0 2)) + (handler-invoked nil)) + (handler-bind ((error + (lambda (c) + (declare (ignore c)) + (assert (not handler-invoked)) + (setf handler-invoked t) + (invoke-restart 'store-value 1)))) + (check-type (car a) integer)) + (assert (eql (car a) 1)))) + + + +