| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:094f1719-b98d-d3cd-040e-dc4a30ac07a7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D3AA:1EA4:4D74A20:6C97A48:6A502D8E |
| html-safe-nonce | ffc32fac769fa3229f970ac4830c3225cf3397160a5c80fe665cb830f420b38e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0FBOjFFQTQ6NEQ3NEEyMDo2Qzk3QTQ4OjZBNTAyRDhFIiwidmlzaXRvcl9pZCI6IjEzMTU2MzcyODI5OTcyODQyMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a35fba24602f13dd6398c53b4c39f5f5b3feea0c071a13194382ba3767309a6 |
| hovercard-subject-tag | pull_request:803751904 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/47160/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/43e3fc540a78df63ff84d1a9ba2d94e9e90135bdf25417f426e39c83e47af777/microsoft/TypeScript/pull/47160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43e3fc540a78df63ff84d1a9ba2d94e9e90135bdf25417f426e39c83e47af777/microsoft/TypeScript/pull/47160 |
| og:image:alt | Fixes #19503
Note that this has the possibility to incur a false positive:
let sHasBeenSet = false;
switch (n) {
case 0:
let s = "ok";
sHasBeenSet = true;
case 1:
... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | d90666eaf032b7eb8975a378efe38e37f4ebb96c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/microsoft/TypeScript/pull/47160#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47160 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47160 |
|
Sign up
| https://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 |
| Reload | https://github.com/microsoft/TypeScript/pull/47160 |
| Reload | https://github.com/microsoft/TypeScript/pull/47160 |
| Reload | https://github.com/microsoft/TypeScript/pull/47160 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
|
microsoft
| https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
|
Notifications
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Fork
13.5k
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Star
110k
| https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript |
|
Code
| https://github.com/microsoft/TypeScript |
|
Issues
5k+
| https://github.com/microsoft/TypeScript/issues |
|
Pull requests
33
| https://github.com/microsoft/TypeScript/pulls |
|
Actions
| https://github.com/microsoft/TypeScript/actions |
|
Projects
| https://github.com/microsoft/TypeScript/projects |
|
Models
| https://github.com/microsoft/TypeScript/models |
|
Wiki
| https://github.com/microsoft/TypeScript/wiki |
|
Security and quality
0
| https://github.com/microsoft/TypeScript/security |
|
Insights
| https://github.com/microsoft/TypeScript/pulse |
|
Code
| https://github.com/microsoft/TypeScript |
|
Issues
| https://github.com/microsoft/TypeScript/issues |
|
Pull requests
| https://github.com/microsoft/TypeScript/pulls |
|
Actions
| https://github.com/microsoft/TypeScript/actions |
|
Projects
| https://github.com/microsoft/TypeScript/projects |
|
Models
| https://github.com/microsoft/TypeScript/models |
|
Wiki
| https://github.com/microsoft/TypeScript/wiki |
|
Security and quality
| https://github.com/microsoft/TypeScript/security |
|
Insights
| https://github.com/microsoft/TypeScript/pulse |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| microsoft:main | https://github.com/microsoft/TypeScript/tree/main |
| RyanCavanaugh:switch-case-tdz | https://github.com/RyanCavanaugh/TypeScript/tree/switch-case-tdz |
| Conversation | https://github.com/microsoft/TypeScript/pull/47160 |
| Commits5 (5) | https://github.com/microsoft/TypeScript/pull/47160/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/47160/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/47160/files |
| Detect usage of block-scoped variables from earlier case blocks | https://github.com/microsoft/TypeScript/pull/47160#top |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| microsoft:main | https://github.com/microsoft/TypeScript/tree/main |
| RyanCavanaugh:switch-case-tdz | https://github.com/RyanCavanaugh/TypeScript/tree/switch-case-tdz |
|
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issue-1081370780 |
| #19503 | https://github.com/microsoft/TypeScript/issues/19503 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
|
| https://github.com/RyanCavanaugh |
| Detect usage of block-scoped variables from earlier case blocks | https://github.com/microsoft/TypeScript/pull/47160/commits/96114887c8f5e5c9947384c0347fcdaa60a2fcbe |
| 9611488 | https://github.com/microsoft/TypeScript/pull/47160/commits/96114887c8f5e5c9947384c0347fcdaa60a2fcbe |
| microsoft#19503 | https://github.com/microsoft/TypeScript/issues/19503 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#event-5773401756 |
| https://github.com/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 Backlog Bug
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22 |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#event-5773401891 |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| December 15, 2021 11:14 | https://github.com/microsoft/TypeScript/pull/47160#commits-pushed-309dfa3 |
|
| https://github.com/RyanCavanaugh |
| Fix up an illegal let | https://github.com/microsoft/TypeScript/pull/47160/commits/309dfa3e00746bca6223a5692cc7f10bbd9129a0 |
| 309dfa3 | https://github.com/microsoft/TypeScript/pull/47160/commits/309dfa3e00746bca6223a5692cc7f10bbd9129a0 |
|
| https://github.com/RyanCavanaugh |
| Add nested switch block testcase | https://github.com/microsoft/TypeScript/pull/47160/commits/40ac03ce942819be7bda2af3ef56bf3d6349b655 |
| 40ac03c | https://github.com/microsoft/TypeScript/pull/47160/commits/40ac03ce942819be7bda2af3ef56bf3d6349b655 |
| https://github.com/DanielRosenwasser |
| DanielRosenwasser | https://github.com/DanielRosenwasser |
|
Dec 15, 2021
| https://github.com/microsoft/TypeScript/pull/47160#pullrequestreview-833263545 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe |
| DanielRosenwasser | https://github.com/DanielRosenwasser |
| https://github.com/microsoft/TypeScript/pull/47160#pullrequestreview-833263545 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| src/compiler/checker.ts | https://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| DanielRosenwasser | https://github.com/DanielRosenwasser |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#discussion_r769938560 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| src/compiler/diagnosticMessages.json | https://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe#diff-fdf3f532dc2d3188ad1c05c8c9e064d0aa4143b8ba09b8f3313a0243f0a43eff |
| DanielRosenwasser | https://github.com/DanielRosenwasser |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#discussion_r769942288 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| December 15, 2021 11:22 | https://github.com/microsoft/TypeScript/pull/47160#commits-pushed-40faaca |
|
| https://github.com/RyanCavanaugh |
| Correctly handle nested switches | https://github.com/microsoft/TypeScript/pull/47160/commits/40faacad1dd57180ab35b3607949932561612f16 |
| 40faaca | https://github.com/microsoft/TypeScript/pull/47160/commits/40faacad1dd57180ab35b3607949932561612f16 |
|
| https://github.com/RyanCavanaugh |
| Lint | https://github.com/microsoft/TypeScript/pull/47160/commits/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb |
| e223f1b | https://github.com/microsoft/TypeScript/pull/47160/commits/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995169160 |
| @typescript-bot | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995169405 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| @RyanCavanaugh | https://github.com/RyanCavanaugh |
| e223f1b | https://github.com/microsoft/TypeScript/commit/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116471 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
|
Dec 15, 2021
| https://github.com/microsoft/TypeScript/pull/47160#ref-pullrequest-1081500242 |
|
🤖 User test baselines have changed for switch-case-tdz
typescript-bot/TypeScript#217
| https://github.com/typescript-bot/TypeScript/pull/217 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995201659 |
| PR with the baseline diff from master | https://github.com/typescript-bot/TypeScript/pull/217 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995226264 |
| @typescript-bot | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/typescript-bot |
| typescript-bot | https://github.com/typescript-bot |
| Dec 15, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995226296 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| @RyanCavanaugh | https://github.com/RyanCavanaugh |
| e223f1b | https://github.com/microsoft/TypeScript/commit/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116472 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/fatcerberus |
| fatcerberus | https://github.com/fatcerberus |
| Dec 22, 2021 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-999279715 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/KillariDev |
| KillariDev | https://github.com/KillariDev |
|
Jan 9, 2023
| https://github.com/microsoft/TypeScript/pull/47160#ref-issue-1525926114 |
|
set no-case-declaration flag
DarkFlorist/TheInterceptor#95
| https://github.com/DarkFlorist/TheInterceptor/issues/95 |
| https://github.com/sandersn |
| sandersn | https://github.com/sandersn |
| Mar 27, 2023 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-1485975765 |
| @RyanCavanaugh | https://github.com/RyanCavanaugh |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Mar 27, 2023 | https://github.com/microsoft/TypeScript/pull/47160#issuecomment-1485979819 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
| Mar 27, 2023 | https://github.com/microsoft/TypeScript/pull/47160#event-8859233006 |
| https://github.com/RyanCavanaugh |
| RyanCavanaugh | https://github.com/RyanCavanaugh |
|
May 22, 2023
| https://github.com/microsoft/TypeScript/pull/47160#ref-issue-1719271400 |
|
Why TDZ checks are not implemented
#54343
| https://github.com/microsoft/TypeScript/issues/54343 |
| https://github.com/microsoft |
| microsoft | https://github.com/microsoft |
| Oct 22, 2025 | https://github.com/microsoft/TypeScript/pull/47160#event-20417478192 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47160 |
|
| https://github.com/DanielRosenwasser |
|
DanielRosenwasser
| https://github.com/DanielRosenwasser |
|
| https://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe |
|
| https://github.com/RyanCavanaugh |
|
RyanCavanaugh
| https://github.com/RyanCavanaugh |
|
Author: Team
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22 |
|
For Backlog Bug
| https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22 |
|
PR Backlog
| https://github.com/orgs/microsoft/projects/1252 |
|
Use before declaration errors when using let statements within a switch case
| https://github.com/microsoft/TypeScript/issues/19503 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/47160 |
|
| https://github.com/RyanCavanaugh |
|
| https://github.com/typescript-bot |
|
| https://github.com/fatcerberus |
|
| https://github.com/sandersn |
|
| https://github.com/DanielRosenwasser |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |