René's URL Explorer Experiment


Title: Ignore switch statement bypass control flows that produce `never` by ahejlsberg · Pull Request #51703 · microsoft/TypeScript · GitHub

Open Graph Title: Ignore switch statement bypass control flows that produce `never` by ahejlsberg · Pull Request #51703 · microsoft/TypeScript

X Title: Ignore switch statement bypass control flows that produce `never` by ahejlsberg · Pull Request #51703 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Ignore switch statement bypass control flows that produce `never` by ahejlsberg · Pull Request #51703 · microsoft/TypeScript

Open Graph Description: Fixes #51688.

X Description: Fixes #51688.

Opengraph URL: https://github.com/microsoft/TypeScript/pull/51703

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9ab9ba57-7fa7-9ff5-265e-a402e22575bd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC0DA:299992:998878:CAFC57:6B01B5FC
html-safe-nonce26b2d585a292b0b42f7d51790297ea1eec65243f0bd211eff258561a4c448867
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMERBOjI5OTk5Mjo5OTg4Nzg6Q0FGQzU3OjZCMDFCNUZDIiwidmlzaXRvcl9pZCI6IjczMzEyMjAzNTY2OTY0ODc0MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfa0bc2c24ffd83d4e776a3420f33cc59fdcfd542030f6df72b094a862ebe3b8c
hovercard-subject-tagpull_request:1140887863
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/51703/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d1b0b5072f6d7d0cd4e1a79636e2161eadb115b0f12d75f8bc07abd694fbd294/microsoft/TypeScript/pull/51703
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d1b0b5072f6d7d0cd4e1a79636e2161eadb115b0f12d75f8bc07abd694fbd294/microsoft/TypeScript/pull/51703
og:image:altFixes #51688.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/51703#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F51703
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F51703
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/51703
Reloadhttps://github.com/microsoft/TypeScript/pull/51703
Reloadhttps://github.com/microsoft/TypeScript/pull/51703
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
fix51688https://github.com/microsoft/TypeScript/tree/fix51688
Conversationhttps://github.com/microsoft/TypeScript/pull/51703
Commits2 (2)https://github.com/microsoft/TypeScript/pull/51703/commits
Checkshttps://github.com/microsoft/TypeScript/pull/51703/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/51703/files
Ignore switch statement bypass control flows that produce neverhttps://github.com/microsoft/TypeScript/pull/51703#top
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
fix51688https://github.com/microsoft/TypeScript/tree/fix51688
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issue-1470235079
#51688https://github.com/microsoft/TypeScript/issues/51688
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
November 30, 2022 13:18https://github.com/microsoft/TypeScript/pull/51703#commits-pushed-d875e98
https://github.com/ahejlsberg
Ignore switch statement bypass control flows that produce 'never'https://github.com/microsoft/TypeScript/pull/51703/commits/d875e983d469211a62b3997174d9d63ba1a1eca3
d875e98https://github.com/microsoft/TypeScript/pull/51703/commits/d875e983d469211a62b3997174d9d63ba1a1eca3
https://github.com/ahejlsberg
Add regression testhttps://github.com/microsoft/TypeScript/pull/51703/commits/3a2ff2701767d3760db1328e817a46788ed4fb91
3a2ff27https://github.com/microsoft/TypeScript/pull/51703/commits/3a2ff2701767d3760db1328e817a46788ed4fb91
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#event-7925821092
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#event-7925821180
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753123
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753163
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
3a2ff27https://github.com/microsoft/TypeScript/commit/3a2ff2701767d3760db1328e817a46788ed4fb91
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=139379
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753164
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
3a2ff27https://github.com/microsoft/TypeScript/commit/3a2ff2701767d3760db1328e817a46788ed4fb91
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=139381
The results are in!https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332841968
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753165
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
3a2ff27https://github.com/microsoft/TypeScript/commit/3a2ff2701767d3760db1328e817a46788ed4fb91
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=139378
The results are in!https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332767803
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753166
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
3a2ff27https://github.com/microsoft/TypeScript/commit/3a2ff2701767d3760db1328e817a46788ed4fb91
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=139382
The results are in!https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332763573
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332753167
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
3a2ff27https://github.com/microsoft/TypeScript/commit/3a2ff2701767d3760db1328e817a46788ed4fb91
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=139380
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
November 30, 2022 21:26https://github.com/microsoft/TypeScript/pull/51703#event-7925827820
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332763573
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332767803
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/139378/artifacts?artifactName=benchmark&fileId=632F69025D3777709B98797CF07847B818C83AAAE368C11DC4BA210CED9135AD01&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332772000
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
here.https://mseng.visualstudio.com/DefaultCollection/Typescript/_git/Typescript/pullrequest/691180
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Nov 30, 2022https://github.com/microsoft/TypeScript/pull/51703#issuecomment-1332841968
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Dec 7, 2022 https://github.com/microsoft/TypeScript/pull/51703#pullrequestreview-1209206152
View reviewed changes https://github.com/microsoft/TypeScript/pull/51703/files/3a2ff2701767d3760db1328e817a46788ed4fb91
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
b9d0e17https://github.com/microsoft/TypeScript/commit/b9d0e17298124a617b50a529ac3a4da5d800fe18
Dec 8, 2022https://github.com/microsoft/TypeScript/pull/51703#event-7983269395
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
December 8, 2022 00:19https://github.com/microsoft/TypeScript/pull/51703#event-7983269542
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/51703#event-20417633893
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F51703
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/51703/files/3a2ff2701767d3760db1328e817a46788ed4fb91
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Type narrowing regression with switch + for in TypeScript 4.9 https://github.com/microsoft/TypeScript/issues/51688
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/51703
https://github.com/ahejlsberg
https://github.com/typescript-bot
https://github.com/weswigham
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.