According to the documentation of the CL library, it is allowed to have code like
(cl-check-type '(a b) proper-list)
where the undefined type symbol proper-list
will be automatically interpreted as
and indeed it does work. However, after upgrading from Emacs 27.1 to 29.1, I am suddenly getting a compiler warning
Warning: Unknown type: proper-list
for such lines, unless I either rewrite it more verbosely as
(cl-check-type '(a b) (satisfies proper-list-p))
or provide an explicit type definition
(cl-deftype proper-list () '(satisfies proper-list-p))
Is anyone aware, if this is intended behavior?
You must log in or register to comment.
Found via looking for the “Unknown type” warning in the emacs-mirror GitHub blame:
https://github.com/emacs-mirror/emacs/commit/5ee4209f307fdf8cde9775539c9596d29edccd6d
Thanks.
The warning could be clearer on that :/
I’m sure the devs would accept a bug report or, better yet, a patch.