catch a bad syntax

svn: r67
This commit is contained in:
Eli Barzilay 2005-06-08 04:29:54 +00:00
parent daa18fcba0
commit 48e7d92913

View File

@ -571,6 +571,7 @@
(defsyntax (make-defclass-form stx)
(syntax-case stx ()
[(_ class-maker name supers . slots0)
(identifier? #'name)
(let loop ([slots1 #'slots0] [slots2 '()])
(syntax-case slots1 ()
[(slot more ...) (not (syntax-keyword? #'slot))