Skip to content

Commit

Permalink
Fix Whatever.ACCEPTS with Mu:U
Browse files Browse the repository at this point in the history
Whatever should accept everything, even a Mu:U. Make it return
True instead of False
  • Loading branch information
zoffixznet committed Dec 26, 2017
1 parent 5c22833 commit 89d85ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Whatever.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ my class X::Cannot::Capture { ... }
my class X::Cannot::New { ... }

my class Whatever {
multi method ACCEPTS(Whatever:D: $ --> True) { }
multi method ACCEPTS(Whatever:D: Mu --> True) { }
multi method perl(Whatever:D: --> '*') { }
multi method Str(Whatever:D: --> '*') { }
method Capture() { die X::Cannot::Capture.new: :what(self) }
Expand Down

0 comments on commit 89d85ba

Please sign in to comment.