Skip to content

Commit

Permalink
fix getproperty (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Feb 12, 2019
1 parent 3e5c4ab commit 57a9073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/JuliaInterpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function determine_method_for_expr(expr; enter_generated = false)
# Can happen for thunks created by generated functions
if isa(f, Core.Builtin) || isa(f, Core.IntrinsicFunction)
return nothing
elseif f === getproperty && allargs[2] <: Vararg
elseif f === getproperty && allargs[2] isa Type && allargs[2] <: Vararg
return nothing # https://github.com/JuliaLang/julia/issues/30995
end
return prepare_call(f, allargs; enter_generated=enter_generated)
Expand Down
2 changes: 2 additions & 0 deletions test/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ ex = quote
end
frame = JuliaInterpreter.prepare_toplevel(Main, ex)
JuliaInterpreter.finish_and_return!(JuliaStackFrame[], frame, true)

@test @interpret Base.Math.DoubleFloat64(-0.5707963267948967, 4.9789962508669555e-17).hi -0.5707963267948967

0 comments on commit 57a9073

Please sign in to comment.