Skip to content

Commit

Permalink
Fixes issue JuliaDebug#385
Browse files Browse the repository at this point in the history
Tested with both cases from the issue.
  • Loading branch information
goerch committed Dec 8, 2021
1 parent 716d7f6 commit ea5a528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ function evaluate_foreigncall(frame::Frame, call_expr::Expr)
if !isempty(data.sparams) && scope isa Method
sig = scope.sig
args[2] = instantiate_type_in_env(args[2], sig, data.sparams)
args[3] = Core.svec(map(args[3]) do arg
args[3] = instantiate_type_in_env(args[3], sig, data.sparams)
args[4] = Core.svec(map(args[4]) do arg
instantiate_type_in_env(arg, sig, data.sparams)
end...)
end
Expand Down

0 comments on commit ea5a528

Please sign in to comment.