Skip to content

Commit 5133d2f

Browse files
committed
Forward-port #41
1 parent 3782ba6 commit 5133d2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/signatures.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function bodymethod(mkw::Method)
576576
local src
577577
while true
578578
framecode = JuliaInterpreter.get_framecode(m)
579-
fakeargs = Any[nothing for i = 1:framecode.scope.nargs]
579+
fakeargs = Any[nothing for i = 1:(framecode.scope::Method).nargs]
580580
frame = JuliaInterpreter.prepare_frame(framecode, fakeargs, isa(m.sig, UnionAll) ? sparam_ub(m) : Core.svec())
581581
src = framecode.src
582582
(length(src.code) > 1 && is_self_call(src.code[end-1], src.slotnames)) || break
@@ -585,13 +585,13 @@ function bodymethod(mkw::Method)
585585
while pc < length(src.code) - 1
586586
pc = step_expr!(frame)
587587
end
588-
val = pc > 1 ? frame.framedata.ssavalues[pc-1] : src.code[1].args[end]
589-
sig = Tuple{Base.unwrap_unionall(m.sig).parameters..., typeof(val)}
588+
val = pc > 1 ? frame.framedata.ssavalues[pc-1] : (src.code[1]::Expr).args[end]
589+
sig = Tuple{(Base.unwrap_unionall(m.sig)::DataType).parameters..., typeof(val)}
590590
m = whichtt(sig)
591591
end
592592
length(src.code) > 1 || return m
593593
stmt = src.code[end-1]
594-
if isexpr(stmt, :call) && (f = stmt.args[1]; isa(f, QuoteNode))
594+
if isexpr(stmt, :call) && (f = (stmt::Expr).args[1]; isa(f, QuoteNode))
595595
if f.value === (isdefined(Core, :_apply_iterate) ? Core._apply_iterate : Core._apply)
596596
ssaref = stmt.args[end-1]
597597
if isa(ssaref, JuliaInterpreter.SSAValue)

0 commit comments

Comments
 (0)