Skip to content

Commit 01a65f4

Browse files
committed
Add test for RT #126105
1 parent 3fe83cf commit 01a65f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S32-exceptions/misc.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33
use lib "t/spec/packages";
44
use Test::Util;
55

6-
plan 353;
6+
plan 354;
77

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

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

762+
# RT #126105
763+
throws-like 'my Int $a is default(Nil)',
764+
X::Parameter::Default::TypeCheck, got => Nil;
765+
762766
# vim: ft=perl6

0 commit comments

Comments
 (0)