Skip to content

Commit

Permalink
Add test for RT #112970
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Oct 5, 2014
1 parent 82e8a20 commit ada98bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S14-roles/parameterized-type.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 30;
plan 31;

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

# RT #112970
{
throws_like 'sub f(Int @x) {}; f( [] )',
X::TypeCheck::Binding,
message => /Positional\[Int\]/,
'error message mentions expected type when a typed array in a signature fails to bind';
}

# vim: ft=perl6

0 comments on commit ada98bc

Please sign in to comment.