Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #111646, slurpies => infinite .count
  • Loading branch information
moritz committed Apr 5, 2012
1 parent d0c47d3 commit cc341e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S06-signature/arity.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 50;
plan 52;

# L<S06/Required parameters/method:>
sub a_zero () { };
Expand Down Expand Up @@ -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.