loop.lsp: remove wrong type declaration for on keyword. Fixes #418

This commit is contained in:
Marius Gerbershagen 2017-11-21 17:59:20 +01:00
parent d2fc77d4f9
commit 2f48a7df9d

View file

@ -1411,7 +1411,8 @@ Note that this is not a valid ANSI code."))
(cond ((and var (symbolp var))
(loop-make-iteration-variable var list data-type))
(t
(loop-make-variable (setq listvar (gensym)) list 'list)
;; using data type 'list for listvar can lead to errors for dotted lists
(loop-make-variable (setq listvar (gensym)) list nil)
(loop-make-iteration-variable var nil data-type)))
(let ((list-step (loop-list-step listvar)))
(let* ((first-endtest