Skip to content

Commit 5d21c6a

Browse files
committed
Fix (hack?) inference test failure
1 parent 3d9ee57 commit 5d21c6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/inference.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4391,6 +4391,7 @@ function inlineable(@nospecialize(f), @nospecialize(ft), e::Expr, atypes::Vector
43914391
# where we can't easily correct it afterwards.
43924392
frame = InferenceState(linfo, #=optimize=#true, #=cache=#false, sv.params)
43934393
frame.stmt_types[1][3] = VarState(atypes[3], false)
4394+
frame.src.slottypes[3] = atypes[3]
43944395
typeinf(frame)
43954396
else
43964397
if isdefined(linfo, :inferred) && linfo.inferred !== nothing

0 commit comments

Comments
 (0)