Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'finally' block catches exceptions #619

occivink opened this issue Mar 2, 2018 · 0 comments

'finally' block catches exceptions #619

occivink opened this issue Mar 2, 2018 · 0 comments


Copy link

occivink commented Mar 2, 2018

If you run this command (straight from the doc)
try { fail bad } finally { echo final }
no exception is thrown, whereas the documentation states that bad should be rethrown.

In addition, even if you rethrow in an except (or else) block the exception will be caught.
try { fail bad } except _ { fail superbad } finally { echo final }
try { nop } else { fail superbad } finally { echo final }

@xiaq xiaq added the bug label Mar 2, 2018
@xiaq xiaq closed this as completed in 763ca79 Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants