You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
B::Deparse does not know how to handle catch{} if it has a full ENTER/LEAVE scope.
This works:
$ ./perl -Ilib -MO=Deparse -e 'use feature qw(try); sub foo { try { 1; } catch ($e) { $e; } }'
try/catch is experimental at -e line 1.
try/catch is experimental at -e line 1.
use feature 'try';
sub foo {
try {
1;
}
catch($e) {
$e;
}
}
-e syntax OK
This doesn't:
$ ./perl -Ilib -MO=Deparse -e 'use feature qw(try); sub foo { try { 1; } catch ($e) { my $x; $e; } }'
try/catch is experimental at -e line 1.
try/catch is experimental at -e line 1.
While deparsing -e near line 1,
Expected scope as second child of catch at lib/B/Deparse.pm line 4075.
CHECK failed--call queue aborted.
The text was updated successfully, but these errors were encountered:
B::Deparse does not know how to handle catch{} if it has a full ENTER/LEAVE scope.
This works:
This doesn't:
The text was updated successfully, but these errors were encountered: