fix #%app bug when it starts with a keyword; PR 9122

svn: r8077
This commit is contained in:
Matthew Flatt 2007-12-20 01:45:35 +00:00
parent c4960b7418
commit 6f45daa5f4

View File

@ -592,7 +592,7 @@
(let ([l (syntax->list stx)])
(if (not (and l
(pair? (cdr l))
(not (keyword? (cadr l)))
(not (keyword? (syntax-e (cadr l))))
(ormap (lambda (x) (keyword? (syntax-e x)))
l)))
;; simple or erroneous app: