summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el
blob: 5f390898e6a27130e08aa0a36ac0686eacf0b85b (plain)
1
2
3
4
;;; -*- lexical-binding: t; -*-
(let ((foo nil))
  (add-hook 'foo #'next-line)
  foo)