Permalink
Browse files

RT #108160

  • Loading branch information...
1 parent 303fbca commit 8014b12dbf09f3614d86a0da346731301dc75ffa @moritz moritz committed Jan 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 S03-operators/binding-hashes.t
@@ -4,7 +4,7 @@ use Test;
# L<S03/Item assignment precedence>
-plan 37;
+plan 38;
# Binding of hash elements.
# See thread "Binding of array elements" on p6l started by Ingo Blechschmidt:
@@ -180,4 +180,7 @@ plan 37;
is ~%hash\ .values.sort, "a c", 'binding %hash := $hashref works (3)';
}
+eval_dies_ok 'my %h = a => 1, b => 2; %h<a b> := (4, 5)',
+ 'Cannot bind to hash slices';
+
# vim: ft=perl6

0 comments on commit 8014b12

Please sign in to comment.