fix PR10810

svn: r18470
This commit is contained in:
Sam Tobin-Hochstadt 2010-03-04 21:42:55 +00:00
parent bf60da75e1
commit e703d52b94

View File

@ -39,6 +39,9 @@
(define (err str . sub)
(apply raise-syntax-error '|type declaration| str stx sub))
(syntax-parse stx*
[_
#:when (eq? 'expression (syntax-local-context))
(err "must be used in a definition context")]
[(_ i:id ty)
(syntax-property (internal (syntax/loc stx (:-internal i ty)))
'disappeared-use #'i)]