Subject: Re: bug#16520: 24.3.50; cl-defstruct with :predicate option

From: Stefan Monnier <[email-masked]>
Date: Wed, 29 Jan 2014 08:59:52 -0500

> The fix doesn't work for this example:

>  (require 'cl-lib)
>  (cl-defstruct (foo (:predicate foo?)))
>  (defun bar (x) (cl-check-type x foo))

Indeed.  But it should work for:

   (require 'cl-lib)
   (cl-defstruct (foo (:predicate foo?)))
   (defun bar (x) (cl-check-type x foo?))

> neither for
>   (cl-defstruct (foo (:predicate nil)))

Not sure if it should work in that case,

        Stefan