Skip to content

Commit

Permalink
Add test for RT #125428
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jun 17, 2015
1 parent 25d7195 commit e9694a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S09-typed-arrays/arrays.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 73;
plan 74;

# L<S09/Typed arrays/>

Expand Down Expand Up @@ -168,6 +168,15 @@ plan 73;
'assignment checks for types';
}

# RT #125428
{
subset Y of Int where 1..10;
my Y @x;
@x.push: 10;
throws-like '@x[0]++', X::TypeCheck,
'pushed value to typed array (using "subset") is type checked';
}

{
my Int @a; @a[2] = 42;
my @b := @a.perl.EVAL;
Expand Down

0 comments on commit e9694a7

Please sign in to comment.