From 933fd76f8fa4583aa3c4cc6e6e22f9a96638c5a5 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 1 Nov 2020 14:41:17 +0100 Subject: [PATCH] * test/src/comp-tests.el (compile-forms): Fix missing lexical binding. --- test/src/comp-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5