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

Support early return code using "and return" #828

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Jul 1, 2023

Do type narrowing if an early return statement uses "and return".

ex:

render and return unless user

refs: #824

Do type narrowing if an early return statement uses "and return".

ex:

    render and return unless user

refs: soutaro#824
Copy link
Owner

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Merging this for now, while I found some improvements and I will fix later.

@soutaro soutaro merged commit 5344252 into soutaro:master Jul 3, 2023
@tk0miya tk0miya deleted the support_and_return branch July 3, 2023 09:51
@soutaro soutaro added this to the Steep 1.5 milestone Jul 5, 2023
@soutaro soutaro added the Released The PR is already included in a published release label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants