Skip to content

Commit a1b4c2b

Browse files
committed
Provide more opportunities to define missing methods
1 parent 9e3fc7f commit a1b4c2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/LoweredCodeUtils.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,15 @@ function methoddef!(@nospecialize(recurse), signatures, frame::Frame, @nospecial
349349
if ismethod3(stmt)
350350
pc3 = pc
351351
sigt, pc = signature(recurse, frame, stmt, pc)
352+
if sigt === nothing && define
353+
step_expr!(recurse, frame, stmt, true)
354+
end
355+
sigt, pc = signature(recurse, frame, stmt, pc)
352356
meth = whichtt(sigt)
357+
if meth === nothing && define
358+
step_expr!(recurse, frame, stmt, true)
359+
meth = whichtt(sigt)
360+
end
353361
if isa(meth, Method)
354362
push!(signatures, meth.sig)
355363
elseif stmt.args[1] == false

0 commit comments

Comments
 (0)