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

fix(compiler-cli): use switch statements to narrow Angular switch blocks #55168

Closed
wants to merge 1 commit into from

Commits on Apr 2, 2024

  1. fix(compiler-cli): use switch statements to narrow Angular switch blocks

    In angular#52110 we had to use `if` statements to represent `switch` blocks, because TypeScript had a bug when narrowing the type of parenthesized `switch` statements. Now that it has been fixed by TypeScript and we don't support any version that has the broken behavior, we can go back to generating `switch` statements in the TCB which are simpler and better represent the user's code.
    crisbeto committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    0afe413 View commit details
    Browse the repository at this point in the history