Permalink
Browse files

RT #111646, slurpies => infinite .count

  • Loading branch information...
1 parent d0c47d3 commit cc341e385f63efc952ee1f7a0f7df328450e781f @moritz moritz committed Apr 5, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 S06-signature/arity.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 50;
+plan 52;
# L<S06/Required parameters/method:>
sub a_zero () { };
@@ -145,4 +145,8 @@ dies_ok { eval("a_zero( 'hello', 'world' )") }, 'no matching sub signature';
is &a.arity, 1, '&multi.arity';
}
+# RT #111646
+is (-> *@a { }).count, Inf, 'slurpy positional causes infinite count';
+is (-> *%a { }).count, 0, 'slurpy named causes no count change';
+
# vim: ft=perl6

0 comments on commit cc341e3

Please sign in to comment.