Skip to content

Commit

Permalink
Add test for RT#76368
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jan 12, 2014
1 parent 4c530a3 commit ed446b2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions S06-signature/errors.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use v6;
use v6;

use Test;

plan 10;
plan 11;

=begin pod
Expand Down Expand Up @@ -55,4 +55,11 @@ eval_dies_ok 'my class A { submethod BUILD(:$!notthere = 10) }; A.new',
ok $error ~~ / 'will never work' .* 'Expected' .* '(@a, $b)' /
}

# RT #76368
{
try { EVAL 'sub foo(Str) {}; foo 42' };
my $error = ~$!;
ok $error ~~ / 'will never work' .* 'Expected' .* 'Str' /
}

# vim: ft=perl6

0 comments on commit ed446b2

Please sign in to comment.