Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing .cache in flat slurpy handling.
Needed if we end up doing a bind check in a multi-dispatch. Has been a
potential issue for a while, but an upcoming multi-dispatch tweak made
a spectest show up this problem.
  • Loading branch information
jnthn committed Sep 23, 2015
1 parent 3970634 commit cf3439c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/List.pm
Expand Up @@ -248,7 +248,10 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
my $no-sink := nqp::push(future, nqp::iscont(consider)
?? consider
!! nqp::istype(consider, Iterable) && consider.DEFINITE
?? consider.flat.Slip
?? (nqp::istype(consider, PositionalBindFailover)
?? consider.cache
!! consider
).flat.Slip
!! consider);
$i = $i + 1;
}
Expand Down

0 comments on commit cf3439c

Please sign in to comment.