Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #78738, dispatch of multis with empty and with mandatory named params
  • Loading branch information
moritz committed Feb 3, 2012
1 parent 3ee43f2 commit e296115
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S06-multi/positional-vs-named.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 26;
plan 27;

# check the subroutine with the closest matching signature is called
#
Expand Down Expand Up @@ -70,5 +70,13 @@ is( wind('f', 'g', her => 3), 'pos f pos g her 3', 'pos, pos, named');
is catch(0, 5, :!really), 2, 'slurpy and named interact well (2)';
}

# RT #78738
{
multi zero() { 'no args' };
multi zero(:$foo!) { 'named' };
is zero(), 'no args',
'presence of mandatory named multi does not corrupt calling a nullary'
}


# vim: ft=perl6

0 comments on commit e296115

Please sign in to comment.