Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #71034.
  • Loading branch information
jnthn committed Apr 6, 2015
1 parent 6f63ff8 commit 8d44426
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib "t/spec/packages";
use Test::Util;

plan 289;
plan 290;

throws_like '42 +', X::AdHoc, "missing rhs of infix", message => rx/term/;

Expand Down Expand Up @@ -616,5 +616,7 @@ throws_like 'class Foo { trusts Bar }', X::Undeclared, symbol => 'Bar', what =>
throws_like 'my $a = |(1, 2, 3)', X::Syntax::ArgFlattener;
throws_like 'sub foo($x) { }; foo({ |(1, 2, 3) })', X::Syntax::ArgFlattener;

# RT #71034
throws_like 'my $a = (1, 2, 3); my @a = |$a;', X::Syntax::ArgFlattener;

# vim: ft=perl6

0 comments on commit 8d44426

Please sign in to comment.