Skip to content

Commit

Permalink
s/postcircumfix:<( )>/CALL-ME/
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 5, 2015
1 parent 44feca7 commit 0528f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S12-methods/fallback.t
Expand Up @@ -56,11 +56,11 @@ is F.new.something(''), 'Str', 'Can multi-dispatch on regular arguments (also on
dies-ok { F.something() }, 'Error when none of the candidates match';

class I {
method postcircumfix:<( )>(|) { 'invaught' }
method CALL-ME { 'invaught' }
method FALLBACK($name, |c) { 'yes, I work' }
}
my $i = I.new;
is $i.spy, 'yes, I work', 'FALLBACK is effective with a postcircumfix:<( )>';
is $i(), 'invaught', 'postcircumfix:<( )> beats FALLBACK';
is $i.spy, 'yes, I work', 'FALLBACK is effective with a CALL-ME';
is $i(), 'invaught', 'CALL-ME beats FALLBACK';

# vim: ft=perl6

0 comments on commit 0528f0c

Please sign in to comment.