Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only instantiated Junctions, please
  • Loading branch information
lizmat committed Sep 23, 2015
1 parent c3ba558 commit 62a5033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Any-iterable-methods.pm
Expand Up @@ -286,7 +286,7 @@ augment class Any {
$!test := test;
self
}
method new(\list,\test) { nqp::create(self).BUILD(list,test) }
method new(\list,\test) { nqp::create(self).BUILD(list,test) }
}

proto method grep(|) is nodal { * }
Expand Down Expand Up @@ -356,7 +356,7 @@ augment class Any {
self.map(&tester);
}
}
multi method grep(Junction $test) is rw {
multi method grep(Junction:D $test) is rw {
self.map({ next unless $_ ~~ $test; $_ });
}
multi method grep(Mu $test) is rw {
Expand Down

0 comments on commit 62a5033

Please sign in to comment.