Skip to content

Commit

Permalink
Tests for RT #123769.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 6, 2015
1 parent 9d891a0 commit 2e2b9fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S09-typed-arrays/arrays.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 77;
plan 79;

# L<S09/Typed arrays/>

Expand Down Expand Up @@ -235,4 +235,11 @@ plan 77;
'can bind element of typed array to scalar container of same type (but not explicitly typed)';
}

# RT #123769
{
my Int @a;
dies-ok { @a[0] := "foo" }, 'Binding literal to typed array checks types';
dies-ok { my Str $x = "foo"; @a[0] := $x; }, 'Binding variablle to typed array checks type';
}

# vim: ft=perl6

0 comments on commit 2e2b9fe

Please sign in to comment.