File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use Test;
3
3
use lib " t/spec/packages" ;
4
4
use Test ::Util;
5
5
6
- plan 326 ;
6
+ plan 328 ;
7
7
8
8
throws-like ' 42 +' , X::AdHoc , " missing rhs of infix" , message => rx /term /;
9
9
@@ -702,4 +702,13 @@ throws-like 'my package P { }; sub foo(P of Int) { }', X::NotParametric;
702
702
throws-like ' my module M { }; sub foo(M of Int) { }' , X::NotParametric ;
703
703
throws-like ' my class C { }; sub foo(C of Int)' , X::NotParametric ;
704
704
705
+ # RT #125620
706
+ {
707
+ my class CustomException is Exception {}
708
+ try die CustomException. new ;
709
+ lives-ok { $! . gist }, ' Can gist an exception with no message method' ;
710
+ ok $! . gist ~~ /CustomException /,
711
+ ' The gist of exception with no message method mentions the type' ;
712
+ }
713
+
705
714
# vim: ft=perl6
You can’t perform that action at this time.
0 commit comments