Skip to content

Commit c3c9fb7

Browse files
committed
test throwing exceptions in CATCH blocks
1 parent be0ff5f commit c3c9fb7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

S04-exception-handlers/catch.t

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 24;
5+
plan 25;
66

77
=begin desc
88
@@ -213,5 +213,18 @@ lives_ok { do {die 'blah'; CATCH {default {}}}; }, 'do block with CATCH {default
213213
ok $!.^isa(Exception), '$!.^isa works';
214214
}
215215

216+
# RT #64262
217+
{
218+
dies_ok {
219+
try {
220+
die 1;
221+
CATCH {
222+
default {
223+
die 2;
224+
}
225+
}
226+
}
227+
}, 'can throw exceptions in CATCH';
228+
}
216229

217230
# vim: ft=perl6

0 commit comments

Comments
 (0)