Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix dodgy xx candidate set.
We had a Real() candidate that accepted a thunked required named arg,
and an Int() one that did not. Make them both Int(). This is likely
how they should have been in the first place, and fixes a regression
introduced by the multi-dispatch coercion semantics changes.
  • Loading branch information
jnthn committed Apr 4, 2015
1 parent 0611b09 commit 40f8883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -675,7 +675,7 @@ sub list(|) {
proto sub infix:<xx>(|) { * }
multi sub infix:<xx>() { fail "No zero-arg meaning for infix:<xx>" }
multi sub infix:<xx>(Mu \x) { x }
multi sub infix:<xx>(Mu \x, Real() $n is copy, :$thunked!) {
multi sub infix:<xx>(Mu \x, Int() $n is copy, :$thunked!) {
GatherIter.new({ take x.() while --$n >= 0; }, :infinite($n == Inf)).list
}
multi sub infix:<xx>(Mu \x, Whatever, :$thunked!) {
Expand Down

0 comments on commit 40f8883

Please sign in to comment.