Skip to content

Commit

Permalink
fix #8853
Browse files Browse the repository at this point in the history
See discussion in #8853, current recursion check fails for staged function.
  • Loading branch information
Jutho committed Dec 22, 2014
1 parent 20a5c3d commit 239bfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ function typeinf(linfo::LambdaStaticData,atypes::Tuple,sparams::Tuple, def, cop)
# check for recursion
f = inference_stack
while !isa(f,EmptyCallStack)
if is(f.ast,ast0) && typeseq(f.types, atypes)
if (is(f.ast,ast0) || f.ast==ast0) && typeseq(f.types, atypes)
# return best guess so far
(f::CallStack).recurred = true
(f::CallStack).cycleid = CYCLE_ID
Expand Down

0 comments on commit 239bfb1

Please sign in to comment.