Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for RT #75302
  • Loading branch information
moritz committed Oct 1, 2011
1 parent 7b0b34d commit 584c1a8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 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 20;
plan 21;

{
sub foo($a is copy) {
Expand Down Expand Up @@ -90,5 +90,14 @@ plan 20;
lives_ok { g() }, 'can call a sub with an optional "is copy" hash param';
}

# RT #75302
{
sub h($x is copy) {
$x = 'abc';
$x
}
is h(*), 'abc', 'can re-assign to "is copy" parameter that held a Whatever';
}


# vim: ft=perl6

0 comments on commit 584c1a8

Please sign in to comment.