Skip to content

Commit ada98bc

Browse files
committed
Add test for RT #112970
1 parent 82e8a20 commit ada98bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

S14-roles/parameterized-type.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 30;
5+
plan 31;
66

77
=begin pod
88
@@ -110,4 +110,12 @@ eval_dies_ok 'role ABCD[EFGH] { }', 'role with undefined type as parameter dies'
110110
is A.new.foo(5), 5.WHAT.gist, 'correct multi selected from multiple parametric roles';
111111
}
112112

113+
# RT #112970
114+
{
115+
throws_like 'sub f(Int @x) {}; f( [] )',
116+
X::TypeCheck::Binding,
117+
message => /Positional\[Int\]/,
118+
'error message mentions expected type when a typed array in a signature fails to bind';
119+
}
120+
113121
# vim: ft=perl6

0 commit comments

Comments
 (0)