Skip to content

Commit

Permalink
Ensure a CATCH actually handles the exception in question.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 24, 2011
1 parent 327258f commit 2881bb5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions S04-statements/try.t
Expand Up @@ -108,10 +108,12 @@ plan 18;
try {
().abc;
CATCH {
$str ~= 'A';
if 'foo' ~~ /foo/ {
$str ~= 'B';
$str ~= $/;
default {
$str ~= 'A';
if 'foo' ~~ /foo/ {
$str ~= 'B';
$str ~= $/;
}
}
}
}
Expand Down

0 comments on commit 2881bb5

Please sign in to comment.