Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

RT #78738, dispatch of multis with empty and with mandatory named params

  • Loading branch information...
commit e296115961e5140fdc30cadfdef960f4594a1dc5 1 parent 3ee43f2
@moritz moritz authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 S06-multi/positional-vs-named.t
View
10 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
#
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.