Copy properties when optimizing bodies of lambda/define-values.
Closes PR 11860.
(cherry picked from commit 981616d504
)
This commit is contained in:
parent
d61e0e4c5c
commit
cb4ab1869e
|
@ -37,7 +37,9 @@
|
|||
;; boring cases, just recur down
|
||||
(pattern ((~and op (~or (~literal #%plain-lambda) (~literal define-values)))
|
||||
formals e:expr ...)
|
||||
#:with opt #`(op formals #,@(syntax-map (optimize) #'(e ...))))
|
||||
#:with opt (syntax-track-origin (quasisyntax/loc this-syntax (op formals #,@(syntax-map (optimize) #'(e ...))))
|
||||
this-syntax
|
||||
#'op))
|
||||
(pattern (case-lambda [formals e:expr ...] ...)
|
||||
;; optimize all the bodies
|
||||
#:with (opt-parts ...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user