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

Correct nilable variable type inference after exception handler #4733

Conversation

makenowjust
Copy link
Contributor

Fixed #4723

Old implementation loses variable's nil_if_read flag after exception handler, so scope variables (i.e. meta vars) type inference is broken when reading such a variable after exception handler.

To need more information, see these comments in spec. Thank you.

Fixed crystal-lang#4723

Old implementation loses variable's `nil_if_read` flag after exception
handler, so scope variables (i.e. meta vars) type inference is broken
when reading such a variable after exception handler.
@makenowjust makenowjust changed the title Correctly inference nilable variable's type after exception handler Correct nilable variable type inference after exception handler Jul 22, 2017
@ysbaddaden
Copy link
Contributor

Perfect!

@ysbaddaden ysbaddaden merged commit 6126402 into crystal-lang:master Jul 24, 2017
@RX14 RX14 added this to the Next milestone Jul 24, 2017
@makenowjust makenowjust deleted the fix/crystal/4723-keep-nil-if-read-around-exception-handler branch July 24, 2017 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants