Title: `@switch` does not have type awareness in case statements · Issue #52315 · angular/angular · GitHub
Open Graph Title: `@switch` does not have type awareness in case statements · Issue #52315 · angular/angular
X Title: `@switch` does not have type awareness in case statements · Issue #52315 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? compiler-cli Is this a regression? No Description Am using package versions of 17.0.0-rc.0, with extension version v17.0.0-next.2. When either using ng build or in vscode itself, the...
Open Graph Description: Which @angular/* package(s) are the source of the bug? compiler-cli Is this a regression? No Description Am using package versions of 17.0.0-rc.0, with extension version v17.0.0-next.2. When either...
X Description: Which @angular/* package(s) are the source of the bug? compiler-cli Is this a regression? No Description Am using package versions of 17.0.0-rc.0, with extension version v17.0.0-next.2. When either...
Opengraph URL: https://github.com/angular/angular/issues/52315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@switch` does not have type awareness in case statements","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncompiler-cli\n\n### Is this a regression?\n\nNo\n\n### Description\n\nAm using package versions of `17.0.0-rc.0`, with extension version `v17.0.0-next.2`.\r\n\r\nWhen either using `ng build` or in vscode itself, there is no error thrown for the below code, `isDebug` is type boolean yet the case statements conflict with that type.\r\n\r\n\r\nInterestingly on mouseover, it does look like an attempt to perform type coercion happens, resulting predictably in a `never` type\r\n\r\n\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n_No response_\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/jpike88","@type":"Person","name":"jpike88"},"datePublished":"2023-10-23T01:59:31Z","url":"https://github.com/angular/angular/issues/52315"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd9173ef-8f94-69b2-f6a2-8802466d5611 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB1E:240CD1:E9AE0F:12A4F19:6B010AFD |
| html-safe-nonce | 8f892a2f2cd9c913b85270cdc5c42a6b3d44466611979a802f03a1e6a4c58c02 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjFFOjI0MENEMTpFOUFFMEY6MTJBNEYxOTo2QjAxMEFGRCIsInZpc2l0b3JfaWQiOiI2NjMwNzE1MDIxODI5NjcxNjc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 29f8b520c59af07c27f3dfd07819433ac48aa72dcd27c89ad40326aadf53f94d |
| hovercard-subject-tag | issue:1956207898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/52315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d301bfbd9c421ff0f6516492b1ef1e713e6b971bd9b59994a8df7c43ac91741b/angular/angular/issues/52315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d301bfbd9c421ff0f6516492b1ef1e713e6b971bd9b59994a8df7c43ac91741b/angular/angular/issues/52315 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? compiler-cli Is this a regression? No Description Am using package versions of 17.0.0-rc.0, with extension version v17.0.0-next.2. When either... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpike88 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width