Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix List.ACCEPTS regression
List.ACCEPTS really has to return the list and not boolify too early.
Otherwise my @matches = $foo ~~ m:g/bar/; breaks
  • Loading branch information
niner committed Aug 28, 2015
1 parent 15b06d0 commit 186223e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -379,7 +379,7 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
}

multi method ACCEPTS(List:D: $topic) {
return ?self unless nqp::istype($topic, Iterable);
return self unless nqp::istype($topic, Iterable);
my $sseq = self;
my $tseq = $topic;

Expand Down

0 comments on commit 186223e

Please sign in to comment.