-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
'with' expression body type and exception handling #1571
Comments
In the sync call, we discussed that it should be possible to avoid adding We also discussed that we want to look at changing the fact that We also discussed that we want to take a broader look at how the |
Closing - not yet resolved. Conversation has moved to ticket #3759. |
The compiler adds None type to the 'with' statement body type. (U8 | None) in the example below, although there is no path which may lead to value of type 'None'
The following code
Leads to
At the same type, adding 'else' section to the 'with' statement leads to "try expression never results in an error"
Environment:
The text was updated successfully, but these errors were encountered: