From 194e7d14996ecdea9bb529e98315bfc43a503236 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Sat, 13 Jan 2024 05:03:23 +0900 Subject: [PATCH] lowering: remove `QuoteNode` wrapping for captured variables Issues like #52531 were more broadly fixed by #52856. This commit partially reverts #52596, while leaving the added tests. --- src/julia-syntax.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index c03700796e72e..855102276a6e5 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -3585,7 +3585,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))