Permalink
Browse files

RT #74912, ++++$x

  • Loading branch information...
1 parent 8c884c7 commit 9955089b892eaefc34567eafcb3c1820d49cc1a1 @moritz moritz committed Jan 6, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 S03-operators/increment.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 30;
+plan 31;
#L<S03/Autoincrement precedence>
@@ -114,4 +114,8 @@ is($moo, 0, "var was not touched");
is $x.pred, Bool::False, '.succ on False works';
}
+# RT #74912
+eval_dies_ok 'my $x = 0; ++++$x',
+ 'can not double-increment, because the return value is not a container';
+
# vim: ft=perl6

0 comments on commit 9955089

Please sign in to comment.