Skip to content

Commit

Permalink
Add tests for RT #126091
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Nov 12, 2015
1 parent 8b28ff8 commit 3fe83cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib "t/spec/packages";
use Test::Util;

plan 351;
plan 353;

throws-like '42 +', Exception, "missing rhs of infix", message => rx/term/;

Expand Down Expand Up @@ -752,4 +752,11 @@ throws-like 'my $x :a', X::Syntax::Adverb;
# RT #117417
throws-like 'sub foo ($bar :D) { 1; }', X::Parameter::InvalidType;

# RT #126091
{
throws-like 'my Nil $a = 3', X::TypeCheck::Assignment, expected => Nil;
throws-like 'sub aa (Nil $a) { }; my $b = 3; aa($b)',
X::TypeCheck::Binding, expected => Nil;
}

# vim: ft=perl6

0 comments on commit 3fe83cf

Please sign in to comment.