René's URL Explorer Experiment


Title: Regression causes Function top-type to be callable with no arguments · Issue #48840 · microsoft/TypeScript · GitHub

Open Graph Title: Regression causes Function top-type to be callable with no arguments · Issue #48840 · microsoft/TypeScript

X Title: Regression causes Function top-type to be callable with no arguments · Issue #48840 · microsoft/TypeScript

Description: Bug Report 🔎 Search Terms function top type callable spread never regression 🕗 Version & Regression Information This changed between versions 3.8.3 and 3.9.7 ⏯ Playground Link Playground link with relevant code 💻 Code declare let foo: (....

Open Graph Description: Bug Report 🔎 Search Terms function top type callable spread never regression 🕗 Version & Regression Information This changed between versions 3.8.3 and 3.9.7 ⏯ Playground Link Playground link with ...

X Description: Bug Report 🔎 Search Terms function top type callable spread never regression 🕗 Version & Regression Information This changed between versions 3.8.3 and 3.9.7 ⏯ Playground Link Playground link w...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/48840

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression causes Function top-type to be callable with no arguments","articleBody":"# Bug Report\r\n### 🔎 Search Terms\r\n\r\nfunction top type callable spread never regression\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions 3.8.3 and 3.9.7\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?ts=3.9.7#code/CYUwxgNghgTiAEEQBd4DMD2GBc8AUAdEbAOYDOuAdiAG4gwCU8AvAHzw0YCWwA3AFCYMLfAA9cZZDC6USTNvADeAXwFC8DXvHgB6HfErD6MDDCA)\r\n\r\n### 💻 Code\r\n\r\n```ts repro\r\ndeclare let foo: (...args: never) => void;\r\nfoo = (x: string) => {};\r\nfoo();  // no error\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n`foo()` was permitted.\r\n\r\n### 🙂 Expected behavior\r\n\r\n`foo()` should not be permitted because it is unsafe. `(...args: never) => unknown` behaves as the top-type for all functions; all function types are assignable to it. So calling it will lead to unsafe behavior by functions expecting 1 or more arguments.\r\n","author":{"url":"https://github.com/webstrand","@type":"Person","name":"webstrand"},"datePublished":"2022-04-25T15:40:58Z","url":"https://github.com/microsoft/TypeScript/issues/48840"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:602cc023-d039-f70a-5e1c-063bc35e263d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD55C:882E2:18E375A:20B92E9:6B0138F0
html-safe-nonce7f2447e04a2c53850cade9440b627677f09124f2665d21162299916a84761a0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTVDOjg4MkUyOjE4RTM3NUE6MjBCOTJFOTo2QjAxMzhGMCIsInZpc2l0b3JfaWQiOiI0MTU1NDgzMDgwODk2ODg3MDI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd83a239b502a83db969e1e81d8ade7959d78fb866c5fb481cf583dbc14196b49
hovercard-subject-tagissue:1214703763
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/48840/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3bc7449e5cde4d89296c9bbd2d3d3b067d84627007e5b89fee0ece8a463e0f08/microsoft/TypeScript/issues/48840
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3bc7449e5cde4d89296c9bbd2d3d3b067d84627007e5b89fee0ece8a463e0f08/microsoft/TypeScript/issues/48840
og:image:altBug Report 🔎 Search Terms function top type callable spread never regression 🕗 Version & Regression Information This changed between versions 3.8.3 and 3.9.7 ⏯ Playground Link Playground link with ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewebstrand
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/48840#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F48840
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%2Fissues%2F48840
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/48840
Reloadhttps://github.com/microsoft/TypeScript/issues/48840
Reloadhttps://github.com/microsoft/TypeScript/issues/48840
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests310 (310)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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48840
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48840
#52387https://github.com/microsoft/TypeScript/pull/52387
Regression causes Function top-type to be callable with no argumentshttps://github.com/microsoft/TypeScript/issues/48840#top
#52387https://github.com/microsoft/TypeScript/pull/52387
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Has ReproThis issue has compiler-backed repros: https://aka.ms/ts-reproshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Has%20Repro%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/webstrand
webstrandhttps://github.com/webstrand
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issue-1214703763
Playground link with relevant codehttps://www.typescriptlang.org/play?ts=3.9.7#code/CYUwxgNghgTiAEEQBd4DMD2GBc8AUAdEbAOYDOuAdiAG4gwCU8AvAHzw0YCWwA3AFCYMLfAA9cZZDC6USTNvADeAXwFC8DXvHgB6HfErD6MDDCA
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Has ReproThis issue has compiler-backed repros: https://aka.ms/ts-reproshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Has%20Repro%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#event-6492783861
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1108986079
Repro bothttps://github.com/microsoft/TypeScript-Twoslash-Repro-Action/tree/master/docs/user-facing.md
Issue bodyhttps://github.com/microsoft/TypeScript/issues/48840#issue-1214703763
webstrandhttps://github.com/webstrand
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1108991265
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1108999897
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#event-6493348619
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109002426
0e15b9fhttps://github.com/microsoft/TypeScript/commit/0e15b9f2457b66ee9c14e42292ea5e5d9d78258e
https://github.com/webstrand
webstrandhttps://github.com/webstrand
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109002502
https://github.com/webstrand
webstrandhttps://github.com/webstrand
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109004345
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109018692
https://github.com/webstrand
webstrandhttps://github.com/webstrand
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109022431
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109033871
#48840 (comment)https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109002426
https://www.typescriptlang.org/play?#code/PQKhCgAIUhlBDAZgUwE6QG5oM4EsD2AdpPopAAYBiAroQMYAuBh5kA7gBa50eTYf5qAGwAmkQvgaQARskh14QochEA6KDACiWVAE9IiWo2Z8BwsbMjxseAOaF405ZAb4XXbABoZ1KQw+mgqLikjJy1nYOTnKukMg6+ob0TETq0MDgyAAeAA74qH66OXIAgoS6NMkmALyQABSqjfCottgAXOLxaADaALoAlJDVAHyY+LgiANzg4EnGRAb4+AA8ACpxWQzIhCLYVuV9w3WDAN5QkBd0RNhSiIQAjB0NjajINx2rgyNjE0P1jaoAPpfUYnAC+0wul2ut0IACYOmUKkYUsRand7pBgMA4qhUPlwGCgAhttps://www.typescriptlang.org/play#code/PQKhCgAIUhlBDAZgUwE6QG5oM4EsD2AdpPopAAYBiAroQMYAuBh5kA7gBa50eTYf5qAGwAmkQvgaQARskh14QochEA6KDACiWVAE9IiWo2Z8BwsbMjxseAOaF405ZAb4XXbABoZ1KQw+mgqLikjJy1nYOTnKukMg6+ob0TETq0MDgyAAeAA74qH66OXIAgoS6NMkmALyQABSqjfCottgAXOLxaADaALoAlJDVAHyY+LgiANzg4EnGRAb4+AA8ACpxWQzIhCLYVuV9w3WDAN5QkBd0RNhSiIQAjB0NjajINx2rgyNjE0P1jaoAPpfUYnAC+0wul2ut0IACYOmUKkYUsRand7pBgMA4qhUPlwGCgA
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Apr 26, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1109510933
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Jun 1, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1143751531
#35438https://github.com/microsoft/TypeScript/pull/35438
Andrew Branch (andrewbranch)https://github.com/andrewbranch
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Jun 1, 2022https://github.com/microsoft/TypeScript/issues/48840#event-6721634055
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on Oct 6, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1270638575
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 6, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1270671527
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on Oct 6, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1270734282
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 7, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1272029084
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Dec 30, 2022https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1368011351
https://github.com/webstrand
webstrandhttps://github.com/webstrand
on Jan 7, 2023https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1374378749
Jake Bailey (jakebailey)https://github.com/jakebailey
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Mar 1, 2023https://github.com/microsoft/TypeScript/issues/48840#event-8634267543
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#52387https://github.com/microsoft/TypeScript/pull/52387
on Mar 1, 2023https://github.com/microsoft/TypeScript/issues/48840#event-8640862072
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Mar 6, 2023https://github.com/microsoft/TypeScript/issues/48840#issuecomment-1456234035
https://github.com/mkantor
Matt Kantor (mkantor)https://github.com/mkantor
on Jul 5, 2025https://github.com/microsoft/TypeScript/issues/48840#issuecomment-3038836610
Joe Calzaretta (@jcalz)https://github.com/jcalz
thishttps://www.typescriptlang.org/play/#code/MYewdgzgLgBAZgLhgCgHToIYCcDmEnRYCWYOA2gLoCUMAvAHwyEk50wZ2MapQgCqABwEBTLAGEMEYcioBYAFBwZMAPQqYAIxAgAtkA
#9352https://github.com/microsoft/TypeScript/issues/9352
#58552https://github.com/microsoft/TypeScript/issues/58552
String#replacehttps://github.com/microsoft/TypeScript/blob/833a8d492c728d606454865e8c0fee84842f9f10/src/lib/es5.d.ts#L452
microsofthttps://github.com/microsoft
on Jan 7, 2026https://github.com/microsoft/TypeScript/issues/48840#event-21905515737
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/48840
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48840
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Has ReproThis issue has compiler-backed repros: https://aka.ms/ts-reproshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Has%20Repro%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
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.