-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Weird behavior with inference related to nullable types #109
Labels
Comments
Arnavion
changed the title
Weird behavior with inference related to nullable return type
Weird behavior with inference related to nullable types
Nov 23, 2014
Might be a duplicate of #13 |
Seems more related to #21 to me, personally. |
Ahh, yes. Sorry, I missed the throw completely. Not sure what I was thinking. |
We fixed the control-flow logic awhile back to understand that an uncaught throw is terminal. So the version of the code with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is related to #21 but:
throw
as exiting the function?)If I change the condition to == null, I get:
Only by adding an (unreachable) return after the throw and changing the condition to == null do I get no errors.
The text was updated successfully, but these errors were encountered: