Skip to content

Commit

Permalink
lowering: remove QuoteNode wrapping for captured variables (JuliaLa…
Browse files Browse the repository at this point in the history
…ng#52878)

Issues like JuliaLang#52531 were more broadly fixed by JuliaLang#52856. This commit
partially reverts JuliaLang#52596, while leaving the added tests.
  • Loading branch information
aviatesk authored and Drvi committed Jun 7, 2024
1 parent b79a965 commit a397252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3580,7 +3580,7 @@ f(x) = yt(x)
(rhs (convert-for-type-decl rhs1 (cl-convert vt fname lam #f #f #f interp opaq (table) locals) #t lam))
(ex (cond (closed `(call (core setfield!)
,(if interp
`($ (call (core QuoteNode) ,var))
`($ ,var)
(capt-var-access var fname opaq))
(inert contents)
,rhs))
Expand Down

0 comments on commit a397252

Please sign in to comment.