We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5069ad0 commit 9699743Copy full SHA for 9699743
S04-statements/try.t
@@ -4,7 +4,7 @@ use Test;
4
5
# L<S04/"Statement parsing"/"or try {...}">
6
7
-plan 27;
+plan 30;
8
9
{
10
# simple try
@@ -160,6 +160,15 @@ plan 27;
160
try { $x = $_ } given '42';
161
is $x, '42', 'try block in statement-modifying contextualizer';
162
}
163
+
164
+# RT #123053
165
+#?rakudo skip 'RT #123053'
166
+lives_ok { try +'foo' }, 'Failure does not escape try (statement form)';
167
168
+lives_ok { try { +'foo' } }, 'Failure does not escape try (block form)';
169
170
+lives_ok { try { +'foo'; CATCH { default { } } } }, 'Failure does not escape try (block form with CATCH)';
171
172
done;
173
174
# vim: ft=perl6
0 commit comments