|
From: | Philipp Stephani |
Subject: | bug#24912: 25.1.50; Byte compiler generates incorrect code when second &optional is used |
Date: | Tue, 22 Nov 2016 13:10:35 +0000 |
emacs -Q
In *scratch*, evaluate:
(funcall
(let ((lexical-binding t))
(byte-compile
(lambda (&optional a b)
(list a b))))
'a 'b)
Result is (a b), as expected. Now evaluate
(funcall
(let ((lexical-binding t))
(byte-compile
(lambda (&optional a &optional b)
(list a b))))
'a 'b)
Result is (b nil).
Emacs should either generate correct code in both cases, or signal an
error in the latter case.
[Prev in Thread] | Current Thread | [Next in Thread] |