;; repro for 40188:
;; evaluate:
;; (check-declare-file "test.el")
;; yields:
;; (("../../tmp/check-declare/some-file.el"
;; ("/tmp/check-declare/test.el" "bar" "file not found")))
;;
;; which omits the second declare-function, which is malformed
(declare-function bar "some-file.el")
(declare-function foo ‘malformed)
;; end of file
I’ve confirmed this bug in 26.3 as well as a local build of 27.0.90.
Here’s a simple repro. Save this in a file and run check-declare-file.
<test.el>