Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #78670
  • Loading branch information
Mouq committed Mar 21, 2015
1 parent a5f67aa commit d4b9bb8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion S06-signature/errors.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 23;
plan 27;

=begin pod
Expand Down Expand Up @@ -71,4 +71,14 @@ eval_dies_ok 'my class A { submethod BUILD(:$!notthere = 10) }; A.new',
ok $error ~~ /^^ \h* '(Int'/, "Error mentions Int";
ok $error ~~ / :i call /, '... error message mentions "call"';
}

# RT #78670
{
try { EVAL 'multi rt78670(Int) {}; my $str = "foo"; rt78670 $str' }
my $error = ~$!;
ok $error ~~ /:i 'rt78670(Str)' /, "fails multi sigs reports call profile";
ok $error ~~ /signature/, "mentions signature";
ok $error ~~ /^^ \h* '(Int'/, "Error mentions Int";
ok $error ~~ / :i call /, '... error message mentions "call"';
}
# vim: ft=perl6

0 comments on commit d4b9bb8

Please sign in to comment.