Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix default setting of .squish(:with)
The proxy method in Supply was sending an empty callable, so the named parameter
default didn't work.  jnthn++ for pointing me in the right direction.
  • Loading branch information
lizmat committed Apr 19, 2014
1 parent 22fbedc commit 1f70700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/SupplyOperations.pm
Expand Up @@ -163,7 +163,8 @@ my class SupplyOperations is repr('Uninstantiable') {
UniqSupply.new(:source($a), :&as, :&with);
}

method squish(Supply $a, :&as, :&with = &[===]) {
method squish(Supply $a, :&as, :&with is copy) {
&with //= &[===];
my class SquishSupply does Supply does PrivatePublishing {
has $!source;
has &!as;
Expand Down

0 comments on commit 1f70700

Please sign in to comment.