Skip to content

Commit 545457a

Browse files
authored
fix failures on 1.7 (#258)
1 parent af1b933 commit 545457a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/reflection.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ function format_ex(ex0)
7676
# if an expr in place of a variable, skip
7777
break
7878
end
79-
kw.args[2] = esc(kw.args[2])
80-
kw.head = Symbol("=")
79+
# see https://github.com/JuliaLang/julia/pull/41040
80+
@static VERSION < v"1.7.0-DEV.1221" && (kw.args[2] = esc(kw.args[2]))
81+
kw.head = :(=)
8182
resize!(ex0[i].args, length(ex0[i].args) - 1)
8283
ex = (kw,)..., ex...
8384
else

0 commit comments

Comments
 (0)