fix PR10810

svn: r18470

original commit: e703d52b945d51623a781dc97eda74a10430e1f9
This commit is contained in:
Sam Tobin-Hochstadt 2010-03-04 21:42:55 +00:00
parent 04dbfaf38e
commit 3edcfaf5f5

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)]