Preserve syntax location in get-field

(needed to let TR show a type tooltip for it)
This commit is contained in:
Asumu Takikawa 2015-05-12 15:09:32 -04:00
parent 46030642fa
commit e6113d1c3c

View File

@ -3982,7 +3982,7 @@ An example
[(_ name obj)
(identifier? (syntax name))
(with-syntax ([localized (localize (syntax name))])
(syntax (get-field/proc `localized obj)))]
(syntax/loc stx (get-field/proc `localized obj)))]
[(_ name obj)
(raise-syntax-error
'get-field "expected a field name as first argument"