Permalink
Browse files

RT #117583: is copy param can be redeclared

  • Loading branch information...
1 parent 7f941a9 commit 2b710bd01a275bbd32df23e383c59e33d2be64bf @moritz moritz committed Apr 13, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 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 23;
+plan 24;
{
sub foo($a is copy) {
@@ -115,5 +115,9 @@ plan 23;
is foo(@items), 'a', 'can slice "is copy" arrays';
}
+# RT #117583
+# the redeclaration thingy is only a warning
+eval_lives_ok 'sub f ($x is copy) { my $x }';
+
# vim: ft=perl6

0 comments on commit 2b710bd

Please sign in to comment.