(defun comp-test-interactive-form2-f ()
(interactive))
+(defun comp-test-40187-2-f ()
+ 'foo)
+
+(defalias 'comp-test-40187-1-f (symbol-function 'comp-test-40187-2-f))
+
+(defun comp-test-40187-2-f ()
+ 'bar)
+
\f
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
(should (equal (interactive-form #'comp-tests-free-fun-f)
'(interactive))))
+(ert-deftest comp-test-40187 ()
+ "Check function name shadowing.
+https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html."
+ (should (eq (comp-test-40187-1-f) 'foo))
+ (should (eq (comp-test-40187-2-f) 'bar)))
+
\f
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;