Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[multi] test interaction of slurpy positional and mandatory named param

  • Loading branch information...
commit 487c5f9b8fd01dbc64d2b9f21ba211dddeacda40 1 parent 2dc589e
@moritz moritz authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 S06-multi/positional-vs-named.t
View
11 S06-multi/positional-vs-named.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 24;
+plan 26;
# check the subroutine with the closest matching signature is called
#
@@ -61,5 +61,14 @@ is( wind('c', her => 3), 'pos c her 3', 'pos, named her');
is( wind('d', 'e'), 'pos d pos e', 'pos, pos');
is( wind('f', 'g', her => 3), 'pos f pos g her 3', 'pos, pos, named');
+#?rakudo skip 'slurpy and named interaction'
+{
+ # a nom bug
+ multi catch(*@all ) { 1 }
+ multi catch(*@all, :$really! ) { 2 }
+ is catch(0, 5), 1, 'slurpy and named interact well (1)';
+ is catch(0, 5, :!really), 2, 'slurpy and named interact well (2)';
+}
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.