avoid an internal error

Closes PR 12138

original commit: fd0a2e98798073ba9baf8d805ce31923f1468b1c
This commit is contained in:
Matthew Flatt 2011-09-04 15:32:37 -06:00
parent 037d6f0f4c
commit 077c95eb87

View File

@ -73,7 +73,9 @@
(let loop ([form (case (syntax-e kind)
[(form) (if (identifier? s-exp)
null
(cdr (syntax-e s-exp)))]
(if (pair? (syntax-e s-exp))
(cdr (syntax-e s-exp))
null))]
[(form/none) s-exp]
[(form/maybe)
(syntax-case s-exp ()