emacs/test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el
Michael Heerdegen 96bbbaec5c Fix obsolete variable warnings about class names
* lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload): Try to make
the wording of the warning about the obsoleted variable less confusing.
* lisp/emacs-lisp/bytecomp.el (byte-compile-check-variable): Don't
warn for lexical variables (Bug#39169).  Fix spurious `or'.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp/warn-obsolete-variable-bound\.el): New test.
* test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-bound.el:
New file.
2021-01-06 10:51:28 +01:00

7 lines
197 B
EmacsLisp

;;; -*- lexical-binding: t -*-
(make-obsolete-variable 'bytecomp--tests-obsolete-var-2 nil "99.99")
(defun foo ()
(let ((bytecomp--tests-obsolete-var-2 2))
bytecomp--tests-obsolete-var-2))