Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test "is copy" on an optional hash parameter, RT #74454
  • Loading branch information
moritz committed Oct 1, 2011
1 parent 82eb8fc commit 4a42b2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S06-traits/is-copy.t
Expand Up @@ -4,7 +4,7 @@ use Test;
# L<S06/"Parameter traits"/"=item is copy">
# should be moved with other subroutine tests?

plan 19;
plan 20;

{
sub foo($a is copy) {
Expand Down Expand Up @@ -84,5 +84,11 @@ plan 19;
is f(1), 5, 'list assignment (1)';
}

# RT #74454
{
sub g(%hash? is copy) { };
lives_ok { g() }, 'can call a sub with an optional "is copy" hash param';
}


# vim: ft=perl6

0 comments on commit 4a42b2e

Please sign in to comment.