Skip to content

Commit

Permalink
Fix insertion of parameters expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jun 24, 2022
1 parent 9070e85 commit 58bfea1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,9 @@ julia> @invoke 420::Integer % Unsigned
macro invoke(ex)
f, args, kwargs = destructure_callex(ex)
types = Expr(:curly, :Tuple)
out = Expr(:call, GlobalRef(Core, :invoke), f)
out = Expr(:call, GlobalRef(Core, :invoke))
isempty(kwargs) || push!(out.args, Expr(:parameters, kwargs...))
push!(out.args, f)
push!(out.args, types)
for arg in args
if isexpr(arg, :(::))
Expand Down

0 comments on commit 58bfea1

Please sign in to comment.