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

[mypyc] Don't crash on unreachable statements #16311

Merged
merged 1 commit into from
Oct 22, 2023

Commits on Oct 21, 2023

  1. [mypyc] Don't crash on unreachable statements

    Skip them instead. This applies to statements after break,
    continue, return and raise statements.
    
    It's common to have unreachable statements temporarily while working
    on a half-finish change, so generating an error is perhaps not the
    best option.
    
    Fixes mypyc/mypyc#1028.
    JukkaL committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    37f536a View commit details
    Browse the repository at this point in the history