Skip to content

Commit

Permalink
Binding into List item throws
Browse files Browse the repository at this point in the history
RT#128755
  • Loading branch information
zoffixznet committed Jul 27, 2016
1 parent 4e09c41 commit 27bee13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S03-binding/nonsense.t
@@ -1,6 +1,6 @@
use Test;

plan 4;
plan 5;

{
my $a = List;
Expand All @@ -25,3 +25,9 @@ plan 4;
#?rakudo skip 'hangs'
throws-like { $a[0] := 1; }, X::Bind, "Can't bind into a defined Str";
}

# RT #128755
{
my $list = (1,2,3);
throws-like { $list[1] := 4 }, X::Bind, "Can't bind into a List item";
}

0 comments on commit 27bee13

Please sign in to comment.