René's URL Explorer Experiment


Title: Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors by Andarist · Pull Request #61824 · microsoft/TypeScript · GitHub

Open Graph Title: Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors by Andarist · Pull Request #61824 · microsoft/TypeScript

X Title: Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors by Andarist · Pull Request #61824 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors by Andarist · Pull Request #61824 · microsoft/TypeScript

Open Graph Description: fixes #61734

X Description: fixes #61734

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

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:0362aa90-03aa-9212-e31c-9a46cf6190e0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE44:2A6083:11AD13:17CC4D:6A4D20BC
html-safe-noncee32cf1175b0a91595be7bfaf70662e0771003e2b4f69d03f95a92c4f95c141c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTQ0OjJBNjA4MzoxMUFEMTM6MTdDQzREOjZBNEQyMEJDIiwidmlzaXRvcl9pZCI6IjYzMTI3OTE2ODU2MTgwMTY0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8db120c76d98fcfe502837dfb8f410f728684bde73895edf19120d3ecd927f36
hovercard-subject-tagpull_request:2574213899
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/61824/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/83af4bcd7c8f65bd34d96c4b236dbd3a0d253acf1cc91fcd868921a853ab8e35/microsoft/TypeScript/pull/61824
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/83af4bcd7c8f65bd34d96c4b236dbd3a0d253acf1cc91fcd868921a853ab8e35/microsoft/TypeScript/pull/61824
og:image:altfixes #61734
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
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
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/61824#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F61824
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F61824
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/61824
Reloadhttps://github.com/microsoft/TypeScript/pull/61824
Reloadhttps://github.com/microsoft/TypeScript/pull/61824
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
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 109k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 34 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
jakebaileyhttps://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/block-scoped-error-when-parse-errorshttps://github.com/Andarist/TypeScript/tree/fix/block-scoped-error-when-parse-errors
Conversationhttps://github.com/microsoft/TypeScript/pull/61824
Commits2 (2)https://github.com/microsoft/TypeScript/pull/61824/commits
Checkshttps://github.com/microsoft/TypeScript/pull/61824/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/61824/files
Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errorshttps://github.com/microsoft/TypeScript/pull/61824#top
jakebaileyhttps://github.com/jakebailey
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/block-scoped-error-when-parse-errorshttps://github.com/Andarist/TypeScript/tree/fix/block-scoped-error-when-parse-errors
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#issue-3125588383
#61734https://github.com/microsoft/TypeScript/issues/61734
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
June 6, 2025 18:47https://github.com/microsoft/TypeScript/pull/61824#event-18027338111
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18027338366
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18027338616
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18027338935
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Jun 6, 2025 https://github.com/microsoft/TypeScript/pull/61824#pullrequestreview-2905772956
View reviewed changes https://github.com/microsoft/TypeScript/pull/61824/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/61824#pullrequestreview-2905772956
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
https://github.com/Andarist
Issue "'{0}' declarations can only be declared inside a block." for b…https://github.com/microsoft/TypeScript/pull/61824/commits/0c2477446caeb6b9e962c291746b90196bdf239d
0c24774https://github.com/microsoft/TypeScript/pull/61824/commits/0c2477446caeb6b9e962c291746b90196bdf239d
https://github.com/Andarist
Andaristhttps://github.com/Andarist
force-pushedhttps://github.com/microsoft/TypeScript/compare/daad9bc42081cc8a67b01055b409c358929ed43f..0c2477446caeb6b9e962c291746b90196bdf239d
daad9bchttps://github.com/microsoft/TypeScript/commit/daad9bc42081cc8a67b01055b409c358929ed43f
0c24774https://github.com/microsoft/TypeScript/commit/0c2477446caeb6b9e962c291746b90196bdf239d
Compare https://github.com/microsoft/TypeScript/compare/daad9bc42081cc8a67b01055b409c358929ed43f..0c2477446caeb6b9e962c291746b90196bdf239d
June 6, 2025 18:48https://github.com/microsoft/TypeScript/pull/61824#event-18027358286
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Jun 6, 2025 https://github.com/microsoft/TypeScript/pull/61824#pullrequestreview-2905984060
View reviewed changes https://github.com/microsoft/TypeScript/pull/61824/files/0c2477446caeb6b9e962c291746b90196bdf239d
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/61824/files/0c2477446caeb6b9e962c291746b90196bdf239d#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
https://github.com/Andarist
use a different functionhttps://github.com/microsoft/TypeScript/pull/61824/commits/3f022d05e5cf8c73954cf57e5c01605b1b81bdb9
3f022d0https://github.com/microsoft/TypeScript/pull/61824/commits/3f022d05e5cf8c73954cf57e5c01605b1b81bdb9
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Jun 6, 2025 https://github.com/microsoft/TypeScript/pull/61824#pullrequestreview-2906106704
View reviewed changes https://github.com/microsoft/TypeScript/pull/61824/files/3f022d05e5cf8c73954cf57e5c01605b1b81bdb9
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18028628870
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
fa2a0fchttps://github.com/microsoft/TypeScript/commit/fa2a0fc5a2f34d5c76dc4b105a93dbe3c4750d5f
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18028800803
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jun 6, 2025https://github.com/microsoft/TypeScript/pull/61824#event-18028801128
Feature implementation from commits 2b88aeb..0dfd0c2 codeOwlAI/TypeScript#2 https://github.com/codeOwlAI/TypeScript/pull/2
Feature implementation from commits b86ab7d..7715955 codeOwlAI/TypeScript#3 https://github.com/codeOwlAI/TypeScript/pull/3
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Jun 30, 2025 https://github.com/microsoft/TypeScript/pull/61824#ref-pullrequest-3107481743
fix: const declarations inside block to be more aggressive #61796 https://github.com/microsoft/TypeScript/pull/61796
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Oct 4, 2025 https://github.com/microsoft/TypeScript/pull/61824#ref-pullrequest-3483636367
Port 'Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors' microsoft/typescript-go#1816 https://github.com/microsoft/typescript-go/pull/1816
https://github.com/microsoft
microsofthttps://github.com/microsoft
Dec 9, 2025https://github.com/microsoft/TypeScript/pull/61824#event-21465768601
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%2F61824
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/61824/files/daad9bc42081cc8a67b01055b409c358929ed43f
https://github.com/jakebailey
jakebailey https://github.com/jakebailey
https://github.com/microsoft/TypeScript/pull/61824/files/3f022d05e5cf8c73954cf57e5c01605b1b81bdb9
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
"'const' declarations can only be declared inside a block" should be issued more aggressively https://github.com/microsoft/TypeScript/issues/61734
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/61824
https://github.com/Andarist
https://github.com/jakebailey
https://github.com/apps/copilot-pull-request-reviewer
https://github.com/andrewbranch
https://github.com/typescript-bot
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.