diff --git a/src/JuliaInterpreter.jl b/src/JuliaInterpreter.jl index 4e2b39b21c2260..d49b25f8d3ec2b 100644 --- a/src/JuliaInterpreter.jl +++ b/src/JuliaInterpreter.jl @@ -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) diff --git a/test/interpret.jl b/test/interpret.jl index 311c36ddc1b34a..338ef87df96979 100644 --- a/test/interpret.jl +++ b/test/interpret.jl @@ -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 \ No newline at end of file