mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c04ffb1fa6
In #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. PR Close #55168