Skip to content

Commit 23ce71b

Browse files
committed
one more improvement
1 parent ff9d79a commit 23ce71b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testinferred.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ function make_callexpr(f, args, kwargs, mod)
400400
error("syntax: invalid keyword argument syntax \"$x\" at $src")
401401
end
402402
if xval isa ConstantValue
403-
push!(callkwargs, x)
403+
push!(callkwargs, Expr(:kw, xkey, xval))
404404
elseif x isa Symbol
405-
push!(callkwargs, esc(x))
405+
push!(callkwargs, Expr(:kw, xkey, esc(xval)))
406406
elseif Meta.isexpr(xval, :$)
407407
error("value interpolation with `\$` is not supported in @constinferred without constant propagation")
408408
else

0 commit comments

Comments
 (0)