Subject: bug#40968: 28.0.50; (apply nil)

From: Mattias Engdegård <[email-masked]>
Date: Thu, 7 May 2020 11:11:00 +0200

7 maj 2020 kl. 08.53 skrev Pip Cet <[email-masked]>:

> It is incomplete. However, I've yet to find an elegant way to fix the
> byte compiler and get it to emit the right error message. Can you
> think of one?

You are right, that's a puzzle. No, I cannot think of an elegant way (but a few inelegant ones).
It's probably not worth the trouble; just change the error test case to

(condition-case nil
  (apply nil)
 (error 'some-error))