René's URL Explorer Experiment


Title: Detect usage of block-scoped variables from earlier case blocks by RyanCavanaugh · Pull Request #47160 · microsoft/TypeScript · GitHub

Open Graph Title: Detect usage of block-scoped variables from earlier case blocks by RyanCavanaugh · Pull Request #47160 · microsoft/TypeScript

X Title: Detect usage of block-scoped variables from earlier case blocks by RyanCavanaugh · Pull Request #47160 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Detect usage of block-scoped variables from earlier case blocks by RyanCavanaugh · Pull Request #47160 · microsoft/TypeScript

Open Graph Description: 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: ...

X Description: 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; ...

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

X: @github

direct link

Domain: github.com

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:094f1719-b98d-d3cd-040e-dc4a30ac07a7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3AA:1EA4:4D74A20:6C97A48:6A502D8E
html-safe-nonceffc32fac769fa3229f970ac4830c3225cf3397160a5c80fe665cb830f420b38e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0FBOjFFQTQ6NEQ3NEEyMDo2Qzk3QTQ4OjZBNTAyRDhFIiwidmlzaXRvcl9pZCI6IjEzMTU2MzcyODI5OTcyODQyMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9a35fba24602f13dd6398c53b4c39f5f5b3feea0c071a13194382ba3767309a6
hovercard-subject-tagpull_request:803751904
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/47160/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/43e3fc540a78df63ff84d1a9ba2d94e9e90135bdf25417f426e39c83e47af777/microsoft/TypeScript/pull/47160
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/43e3fc540a78df63ff84d1a9ba2d94e9e90135bdf25417f426e39c83e47af777/microsoft/TypeScript/pull/47160
og:image:altFixes #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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRyanCavanaugh
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/microsoft/TypeScript/pull/47160
Reloadhttps://github.com/microsoft/TypeScript/pull/47160
Reloadhttps://github.com/microsoft/TypeScript/pull/47160
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
microsoft https://github.com/microsoft
TypeScripthttps://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
RyanCavanaughhttps://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
RyanCavanaugh:switch-case-tdzhttps://github.com/RyanCavanaugh/TypeScript/tree/switch-case-tdz
Conversationhttps://github.com/microsoft/TypeScript/pull/47160
Commits5 (5)https://github.com/microsoft/TypeScript/pull/47160/commits
Checkshttps://github.com/microsoft/TypeScript/pull/47160/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/47160/files
Detect usage of block-scoped variables from earlier case blockshttps://github.com/microsoft/TypeScript/pull/47160#top
RyanCavanaughhttps://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
RyanCavanaugh:switch-case-tdzhttps://github.com/RyanCavanaugh/TypeScript/tree/switch-case-tdz
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issue-1081370780
#19503https://github.com/microsoft/TypeScript/issues/19503
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/RyanCavanaugh
Detect usage of block-scoped variables from earlier case blockshttps://github.com/microsoft/TypeScript/pull/47160/commits/96114887c8f5e5c9947384c0347fcdaa60a2fcbe
9611488https://github.com/microsoft/TypeScript/pull/47160/commits/96114887c8f5e5c9947384c0347fcdaa60a2fcbe
microsoft#19503https://github.com/microsoft/TypeScript/issues/19503
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
RyanCavanaughhttps://github.com/RyanCavanaugh
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#event-5773401756
https://github.com/typescript-bot
typescript-bothttps://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, 2021https://github.com/microsoft/TypeScript/pull/47160#event-5773401891
RyanCavanaughhttps://github.com/RyanCavanaugh
December 15, 2021 11:14https://github.com/microsoft/TypeScript/pull/47160#commits-pushed-309dfa3
https://github.com/RyanCavanaugh
Fix up an illegal lethttps://github.com/microsoft/TypeScript/pull/47160/commits/309dfa3e00746bca6223a5692cc7f10bbd9129a0
309dfa3https://github.com/microsoft/TypeScript/pull/47160/commits/309dfa3e00746bca6223a5692cc7f10bbd9129a0
https://github.com/RyanCavanaugh
Add nested switch block testcasehttps://github.com/microsoft/TypeScript/pull/47160/commits/40ac03ce942819be7bda2af3ef56bf3d6349b655
40ac03chttps://github.com/microsoft/TypeScript/pull/47160/commits/40ac03ce942819be7bda2af3ef56bf3d6349b655
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://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
DanielRosenwasserhttps://github.com/DanielRosenwasser
https://github.com/microsoft/TypeScript/pull/47160#pullrequestreview-833263545
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
DanielRosenwasserhttps://github.com/DanielRosenwasser
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#discussion_r769938560
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
src/compiler/diagnosticMessages.jsonhttps://github.com/microsoft/TypeScript/pull/47160/files/96114887c8f5e5c9947384c0347fcdaa60a2fcbe#diff-fdf3f532dc2d3188ad1c05c8c9e064d0aa4143b8ba09b8f3313a0243f0a43eff
DanielRosenwasserhttps://github.com/DanielRosenwasser
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#discussion_r769942288
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
RyanCavanaughhttps://github.com/RyanCavanaugh
December 15, 2021 11:22https://github.com/microsoft/TypeScript/pull/47160#commits-pushed-40faaca
https://github.com/RyanCavanaugh
Correctly handle nested switcheshttps://github.com/microsoft/TypeScript/pull/47160/commits/40faacad1dd57180ab35b3607949932561612f16
40faacahttps://github.com/microsoft/TypeScript/pull/47160/commits/40faacad1dd57180ab35b3607949932561612f16
https://github.com/RyanCavanaugh
Linthttps://github.com/microsoft/TypeScript/pull/47160/commits/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb
e223f1bhttps://github.com/microsoft/TypeScript/pull/47160/commits/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995169160
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995169405
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
@RyanCavanaughhttps://github.com/RyanCavanaugh
e223f1bhttps://github.com/microsoft/TypeScript/commit/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116471
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/typescript-bot
typescript-bothttps://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-bothttps://github.com/typescript-bot
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995201659
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/217
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995226264
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Dec 15, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-995226296
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
@RyanCavanaughhttps://github.com/RyanCavanaugh
e223f1bhttps://github.com/microsoft/TypeScript/commit/e223f1b61dcc6b60a805e507bac791f0d3cf5bdb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=116472
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/fatcerberus
fatcerberushttps://github.com/fatcerberus
Dec 22, 2021https://github.com/microsoft/TypeScript/pull/47160#issuecomment-999279715
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/KillariDev
KillariDevhttps://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
sandersnhttps://github.com/sandersn
Mar 27, 2023https://github.com/microsoft/TypeScript/pull/47160#issuecomment-1485975765
@RyanCavanaughhttps://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Mar 27, 2023https://github.com/microsoft/TypeScript/pull/47160#issuecomment-1485979819
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47160
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Mar 27, 2023https://github.com/microsoft/TypeScript/pull/47160#event-8859233006
https://github.com/RyanCavanaugh
RyanCavanaughhttps://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
microsofthttps://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/47160#event-20417478192
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%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 pagehttps://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
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.