Skip to content

Commit

Permalink
X::Method::NotFound shouldn't die with no message
Browse files Browse the repository at this point in the history
For RT #131492
  • Loading branch information
MasterDuke17 committed Jun 10, 2017
1 parent ed4d510 commit 4bfd6d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -5,7 +5,7 @@ use lib "t/spec/packages";
use Test;
use Test::Util;

plan 426;
plan 427;

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

Expand Down Expand Up @@ -960,4 +960,11 @@ throws-like 'sub foo(@array ($first, @rest)) { say @rest }; foo <1 2 3>;',
nok $warned, 'No warning when producing error for "my $!a"';
}

# RT #131492
{
throws-like q| my \foo = Callable but role :: { } |,
X::Method::NotFound,
'X::Method::NotFound does not die with "X::Method::NotFound exception produced no message"';
}

# vim: ft=perl6

0 comments on commit 4bfd6d2

Please sign in to comment.