Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t/spec] test for RT #62172

git-svn-id: http://svn.pugscode.org/pugs@24876 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 2c5007fb709a4bd9f8a0328bb158373c0699427d 1 parent c619d8b
moritz authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 S06-signature/passing-arrays.t
View
9 S06-signature/passing-arrays.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 7;
+plan 8;
{
sub count(@a) {
@@ -30,5 +30,12 @@ plan 7;
sub ph(%h) { 1 }
dies_ok { ph(3) }, 'an Int is not a Hash';
+}
+# this used to be a rakudobug, RT #62172
+{
+ my @a = 1..8;
+ sub t1(@a) { return +@a };
+ sub t2(@a) { return t1(@a) };
+ is t2(@a), 8, 'can pass arrays through multiple subs';
}
Please sign in to comment.
Something went wrong with that request. Please try again.