X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdefstruct.impure.lisp;h=1354ab60174d828c90f7b9250d2f70e5374178bb;hb=b67c2d7522c0b73a18e316faa2b81d7c8b187706;hp=e84e4f3882a9f493cf4d6f647ffd7c102a74685b;hpb=6554859e4423fbf007452160d86520d056b88c6d;p=sbcl.git diff --git a/tests/defstruct.impure.lisp b/tests/defstruct.impure.lisp index e84e4f3..1354ab6 100644 --- a/tests/defstruct.impure.lisp +++ b/tests/defstruct.impure.lisp @@ -1071,3 +1071,15 @@ redefinition." (handler-bind ((style-warning #'error)) (eval `(defstruct (bug-528807 (:constructor make-528807 (&aux x))) (x nil :type fixnum)))))) + +(with-test (:name :bug-520607) + (assert + (raises-error? + (eval '(defstruct (typed-struct (:type list) (:predicate typed-struct-p)) + (a 42 :type fixnum))))) + ;; NIL is ok, though. + (eval '(defstruct (typed-struct (:type list) (:predicate nil)) + (a 42 :type fixnum))) + ;; So's empty. + (eval '(defstruct (typed-struct2 (:type list) (:predicate)) + (a 42 :type fixnum))))