Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #81682
  • Loading branch information
usev6 committed Jun 30, 2015
1 parent 305ca31 commit 8dd0ebb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion S09-typed-arrays/arrays.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 74;
plan 76;

# L<S09/Typed arrays/>

Expand Down Expand Up @@ -223,4 +223,17 @@ plan 74;
"Can assign to and return Array[Hash] from type-constrained sub";
}

# RT #81682
{
my Int @rt81682 = ^3;
my Int $x = 5;
@rt81682[0] := $x;
is ~@rt81682, '5 1 2',
'can bind element of typed array to scalar container of same type';
my $y = 6;
@rt81682[2] := $y;
is ~@rt81682, '5 1 6',
'can bind element of typed array to scalar container of same type (but not explicitely typed)';
}

# vim: ft=perl6

0 comments on commit 8dd0ebb

Please sign in to comment.