Skip to content

Instantly share code, notes, and snippets.

@cbaggers
Created February 27, 2016 22:41
Show Gist options
  • Save cbaggers/fd1813b927f40ca50777 to your computer and use it in GitHub Desktop.
Save cbaggers/fd1813b927f40ca50777 to your computer and use it in GitHub Desktop.
Confusion around declare in ecl
;; Compiling this..
(defun jam ()
(let ((x #'identity))
(locally (declare (type function x))
(funcall x 10))))
;; .. gives this ..
;;; Warning:
;;; in file ecl-swank-tmpfile-f8EyN6, position 0
;;; at (DEFUN JAM ...)
;;; ! Declaration of type
;;; FUNCTION
;;; was found for not bound variable X.
;; which seems odd as it works on sbcl & ccl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment