René's URL Explorer Experiment


Title: type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of types · Issue #49116 · microsoft/TypeScript · GitHub

Open Graph Title: type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of types · Issue #49116 · microsoft/TypeScript

X Title: type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of types · Issue #49116 · microsoft/TypeScript

Description: Bug Report 🔎 Search Terms type generic extends class expression 🕗 Version & Regression Information This allways reported incorrect data tested between versions 3.3.x and 4.6.2 ⏯ Playground Link Playground Link Typescript Eslint Ast Explo...

Open Graph Description: Bug Report 🔎 Search Terms type generic extends class expression 🕗 Version & Regression Information This allways reported incorrect data tested between versions 3.3.x and 4.6.2 ⏯ Playground Link Pla...

X Description: Bug Report 🔎 Search Terms type generic extends class expression 🕗 Version & Regression Information This allways reported incorrect data tested between versions 3.3.x and 4.6.2 ⏯ Playground Link...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of types","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n  Please fill in each section completely. Thank you!\r\n-->\r\n\r\n### 🔎 Search Terms\r\n\r\n- type\r\n- generic extends\r\n- class expression\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This allways reported incorrect data tested between versions 3.3.x and 4.6.2\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground Link](https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0BYAFABIceSghxSCBmxNW7LohmjHb2Do6OAA7iMABu6GyIAPpgZBaImFDRYJIA3A5hkSAARqgwEIhsGYJxqCBpGVmSNgWOhDCYwsmp2og1dXlOjoZhw-ajQA)\r\n\r\n[Typescript Eslint](https://typescript-eslint.io/play/#ts=4.6.4&sourceType=module&code=GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0BYAFABIceSghxSCBmxNW7LohmjHb2Do6OAA7iMABu6GyIAPpgZBaImFDRYJIA3A5hkSAARqgwEIhsGYJxqCBpGVmSNgWOhDCYwsmp2og1dXlOjoZhw-aGQA&rules=N4IgAgLgngDgpgZwMYCcCWMIFpEBs0B2EA9DCnAGZwpbkCGAJgPYG5QgBcI1KTKIAXyA&tsConfig=N4XyA)\r\n\r\n[Ast Explorer](https://ts-ast-viewer.com/#code/GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0AoAJDjyUEOKQQM2Jq3ZdEZxjsHewAHcRgAN3Q2RAB9MDILREwocLBJAG5bYJCQACNUGAhENhTBKNQQJJS0yRtg+0IYTGF4xO1ECqqs+3tDB37DIA)\r\n\r\n### 💻 Code\r\n\r\n```ts\r\nfunction ClassWithName\u003cTBase extends new (...args: any[]) => {}>(Base: TBase) {\r\n\treturn class A extends Base {\r\n\t}\r\n}\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nType of ClassExpression that extends generic not default TypeConstructor is incorrectly reported as Intersection without symbol set\r\n\r\n![image](https://user-images.githubusercontent.com/625469/168471215-18fa8582-9def-4bc6-b857-ed12279c387c.png)\r\n\r\n### 🙂 Expected behavior\r\n\r\ni expect to receive object with type TypeObject that has Object typeFlag set and properly defined symbol\r\n\r\nThis issue is present only if we extend class by other class thatr is provided by arg of function `\u003cTBase extends new (...args: any[]) => {}>(Base: TBase)` and only if its a generic (template)\r\n\r\nref: https://github.com/typescript-eslint/typescript-eslint/pull/4974","author":{"url":"https://github.com/armano2","@type":"Person","name":"armano2"},"datePublished":"2022-05-15T11:54:49Z","url":"https://github.com/microsoft/TypeScript/issues/49116"}

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:d92f6ab4-7260-5069-13b2-7bd115a0b9af
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9162:63875:6F3D8A:9554B7:6B00D7C5
html-safe-noncefdccd6cf07a0c47cbdc01c6eff1c04bb4eb938eb7cd366ce1502bfa6447c2c96
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTYyOjYzODc1OjZGM0Q4QTo5NTU0Qjc6NkIwMEQ3QzUiLCJ2aXNpdG9yX2lkIjoiODE1OTc3MDE3NDUwNzIwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac79ca9f8713ce416961ce5b9b02844e3ec8ec6f2d17c7e23f9d78a1e0c95e376a
hovercard-subject-tagissue:1236266691
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/49116/issue_layout
twitter:imagehttps://opengraph.githubassets.com/04b375c3137dc40227508405d0d8ff593bfbfccc9f20d913dbf620d28bc09812/microsoft/TypeScript/issues/49116
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/04b375c3137dc40227508405d0d8ff593bfbfccc9f20d913dbf620d28bc09812/microsoft/TypeScript/issues/49116
og:image:altBug Report 🔎 Search Terms type generic extends class expression 🕗 Version & Regression Information This allways reported incorrect data tested between versions 3.3.x and 4.6.2 ⏯ Playground Link Pla...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearmano2
hostnamegithub.com
expected-hostnamegithub.com
Nonea481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b
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
release84c8c5cc25e2fb7f2308428458538436baecc6d2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/49116#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F49116
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%2F49116
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/49116
Reloadhttps://github.com/microsoft/TypeScript/issues/49116
Reloadhttps://github.com/microsoft/TypeScript/issues/49116
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)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/49116
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/49116
type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of typeshttps://github.com/microsoft/TypeScript/issues/49116#top
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com/armano2
Armano (armano2)https://github.com/armano2
on May 15, 2022https://github.com/microsoft/TypeScript/issues/49116#issue-1236266691
Playground Linkhttps://www.typescriptlang.org/play#code/GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0BYAFABIceSghxSCBmxNW7LohmjHb2Do6OAA7iMABu6GyIAPpgZBaImFDRYJIA3A5hkSAARqgwEIhsGYJxqCBpGVmSNgWOhDCYwsmp2og1dXlOjoZhw-ajQA
Typescript Eslinthttps://typescript-eslint.io/play/#ts=4.6.4&sourceType=module&code=GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0BYAFABIceSghxSCBmxNW7LohmjHb2Do6OAA7iMABu6GyIAPpgZBaImFDRYJIA3A5hkSAARqgwEIhsGYJxqCBpGVmSNgWOhDCYwsmp2og1dXlOjoZhw-aGQA&rules=N4IgAgLgngDgpgZwMYCcCWMIFpEBs0B2EA9DCnAGZwpbkCGAJgPYG5QgBcI1KTKIAXyA&tsConfig=N4XyA
Ast Explorerhttps://ts-ast-viewer.com/#code/GYVwdgxgLglg9mABAYQDYEMDOmDqMoAWAcugLYCmAPACoBCW5i5AHlOWACaaJjkDuiABQA6UegBOAc0wAuROjABPANoBdAJSIAvAD5EAbwC+OwfUzk5dBpv0AoAJDjyUEOKQQM2Jq3ZdEZxjsHewAHcRgAN3Q2RAB9MDILREwocLBJAG5bYJCQACNUGAhENhTBKNQQJJS0yRtg+0IYTGF4xO1ECqqs+3tDB37DIA
https://user-images.githubusercontent.com/625469/168471215-18fa8582-9def-4bc6-b857-ed12279c387c.png
typescript-eslint/typescript-eslint#4974https://github.com/typescript-eslint/typescript-eslint/pull/4974
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on May 26, 2022https://github.com/microsoft/TypeScript/issues/49116#event-6681989644
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on May 26, 2022https://github.com/microsoft/TypeScript/issues/49116#issuecomment-1137994986
#13743https://github.com/microsoft/TypeScript/pull/13743
Andrew Branch (andrewbranch)https://github.com/andrewbranch
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 26, 2022https://github.com/microsoft/TypeScript/issues/49116#event-6681990884
microsofthttps://github.com/microsoft
on Oct 22, 2025https://github.com/microsoft/TypeScript/issues/49116#event-20417540531
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/49116
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/49116
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
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.