Preserve syntax location in get-field
(needed to let TR show a type tooltip for it)
This commit is contained in:
parent
46030642fa
commit
e6113d1c3c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user