Skip to content

Commit

Permalink
Better fix for RT #131270, fixes RT #131272
Browse files Browse the repository at this point in the history
This breaks the latest added too specific tests for RT #131270.
  • Loading branch information
lizmat committed May 8, 2017
1 parent 60f8981 commit 31be512
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/Baggy.pm
Expand Up @@ -518,9 +518,7 @@ my role Baggy does QuantHash {
!! self!ROLLPICKGRABN($count, %!elems.values, :keep);
}

method !ROLLPICKGRABN(\count, @pairs, :$keep) { # N times
nqp::istype(count, Int)
|| X::Invalid::ComputedValue.new(:name<count>, :value(count)).throw;
method !ROLLPICKGRABN(Int() $count, @pairs, :$keep) { # N times
Seq.new(class :: does Iterator {
has Int $!total;
has int $!elems;
Expand Down Expand Up @@ -566,7 +564,7 @@ my role Baggy does QuantHash {
}
IterationEnd
}
}.new(self.total,@pairs,$keep,count))
}.new(self.total,@pairs,$keep,$count))
}

#--- classification method
Expand Down

0 comments on commit 31be512

Please sign in to comment.