fix PR10810
svn: r18470 original commit: e703d52b945d51623a781dc97eda74a10430e1f9
This commit is contained in:
parent
04dbfaf38e
commit
3edcfaf5f5
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user