Skip to content

Commit

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

plan 353;
plan 354;

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

Expand Down Expand Up @@ -759,4 +759,8 @@ throws-like 'sub foo ($bar :D) { 1; }', X::Parameter::InvalidType;
X::TypeCheck::Binding, expected => Nil;
}

# RT #126105
throws-like 'my Int $a is default(Nil)',
X::Parameter::Default::TypeCheck, got => Nil;

# vim: ft=perl6

0 comments on commit 01a65f4

Please sign in to comment.