Permalink
Browse files

[t/spec] tests for RT #74410 The combination of prefix:<+> and slurpy…

… arrays doesnt work

git-svn-id: http://svn.pugscode.org/pugs@31893 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 4957469 commit 2b67d3942ca19e2f53ea7a64dde66b8918563cc4 bbkr committed Aug 3, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 S06-signature/slurpy-params.t
View
6 S06-signature/slurpy-params.t
@@ -323,6 +323,12 @@ eval_dies_ok 'sub rt65324(*@x, $oops) { say $oops }',
A(5, 4);
}
+# RT #74410
+{
+ is -> *@a { @a[+0] }.([5]), 5,
+ 'slurpy array can be indexed if index contains prefix:<+>';
+}
+
done_testing;
# vim: ft=perl6

0 comments on commit 2b67d39

Please sign in to comment.