From: Andrea Corallo Date: Sun, 1 Nov 2020 13:41:17 +0000 (+0100) Subject: * test/src/comp-tests.el (compile-forms): Fix missing lexical binding. X-Git-Tag: emacs-28.0.90~2727^2~348 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=933fd76f8fa4583aa3c4cc6e6e22f9a96638c5a5;p=emacs.git * test/src/comp-tests.el (compile-forms): Fix missing lexical binding. --- diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 9c3c7f62a30..21c8abad038 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el @@ -418,7 +418,8 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." (comp-deftest compile-forms () "Verify lambda form native compilation." (should-error (native-compile '(+ 1 foo))) - (let ((f (native-compile '(lambda (x) (1+ x))))) + (let ((lexical-binding t) + (f (native-compile '(lambda (x) (1+ x))))) (should (subr-native-elisp-p f)) (should (= (funcall f 2) 3))) (let* ((lexical-binding nil)