Skip to content

Commit

Permalink
remove Cool type constraint from Bool.pick
Browse files Browse the repository at this point in the history
It doesn't allow a Whatever-star, so it's certainly wrong. It now let the
re-dispatch to Parcel.pick do the type check or coercion, if any.
  • Loading branch information
moritz committed Sep 15, 2010
1 parent 52bf6f3 commit 15c3f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Bool.pm
Expand Up @@ -7,7 +7,7 @@ augment class Bool does Abstraction {
method Str() { $.perl() }

method Bridge() { self ?? 1.Bridge !! 0.Bridge }
method pick(Cool $count = 1, :$replace) {
method pick($count = 1, :$replace) {
(True, False).pick($count, :$replace);
}
}

0 comments on commit 15c3f75

Please sign in to comment.