don't raise error for require/typed in module-begin context

This commit is contained in:
AlexKnauth 2015-05-13 15:03:07 -04:00 committed by Sam Tobin-Hochstadt
parent c6b1f8fdc0
commit b11e48fa93

View File

@ -140,7 +140,7 @@
(define ((r/t-maker legacy) stx)
(unless (unbox typed-context?)
(unless (or (unbox typed-context?) (eq? (syntax-local-context) 'module-begin))
(raise-syntax-error #f "only allowed in a typed module" stx))
(syntax-parse stx
[(_ lib:expr (~var c (clause legacy #'lib)) ...)