Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test for RT #75302

  • Loading branch information...
commit 584c1a8305ceb94a1444a865df60de82c7183179 1 parent 7b0b34d
@moritz moritz authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 S06-traits/is-copy.t
View
11 S06-traits/is-copy.t
@@ -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) {
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.