Skip to content

Commit d3d6478

Browse files
committed
more follow up for JuliaLang/julia#37573
1 parent 7723a86 commit d3d6478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/match/macro.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ macro capture(ex, pat)
6969
pat = subtb(subor(pat))
7070
quote
7171
$([:($(esc(b)) = nothing) for b in bs]...)
72-
env = trymatch($(Expr(:quote, pat)), $(esc(ex)))
72+
env = trymatch($(esc(Expr(:quote, pat))), $(esc(ex)))
7373
if env == nothing
7474
false
7575
else
76-
$([:($(esc(b)) = get(env, $(Expr(:quote, b)), nothing)) for b in bs]...)
76+
$([:($(esc(b)) = get(env, $(esc(Expr(:quote, b))), nothing)) for b in bs]...)
7777
true
7878
end
7979
end

0 commit comments

Comments
 (0)