René's URL Explorer Experiment


Title: Regression: 2.4.1 Generic type mismatch · Issue #16985 · microsoft/TypeScript · GitHub

Open Graph Title: Regression: 2.4.1 Generic type mismatch · Issue #16985 · microsoft/TypeScript

X Title: Regression: 2.4.1 Generic type mismatch · Issue #16985 · microsoft/TypeScript

Description: This is a simplified piece of code which demonstrates the problem. It compiles fine in 2.3.4 & 2.4.0, but produces a not assignable error in 2.4.1 and nightly. TypeScript Version: 2.4.1 / nightly (2.5.0-dev.20170629) Code interface MyInt...

Open Graph Description: This is a simplified piece of code which demonstrates the problem. It compiles fine in 2.3.4 & 2.4.0, but produces a not assignable error in 2.4.1 and nightly. TypeScript Version: 2.4.1 / nightly (...

X Description: This is a simplified piece of code which demonstrates the problem. It compiles fine in 2.3.4 & 2.4.0, but produces a not assignable error in 2.4.1 and nightly. TypeScript Version: 2.4.1 / night...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: 2.4.1 Generic type mismatch ","articleBody":"This is a simplified piece of code which demonstrates the problem. It compiles fine in 2.3.4 & 2.4.0, but produces a not assignable error in 2.4.1 and nightly.\r\n\r\n**TypeScript Version:**  2.4.1 / nightly (2.5.0-dev.20170629)\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface MyInterface {\r\n  something: number;\r\n}\r\n\r\nclass MyClass\u003cT extends MyInterface> {\r\n  doIt(data : Partial\u003cT>) {}\r\n}\r\n\r\nclass MySubClass extends MyClass\u003cMyInterface> {}\r\n\r\nfunction fn(arg: typeof MyClass) {};\r\n\r\nfn(MySubClass);\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nNo compile error.\r\n\r\n**Actual behavior:**\r\n\r\n```\r\ntest.ts(13,4): error TS2345: Argument of type 'typeof MySubClass' is not assignable to parameter of type 'typeof MyClass'.\r\n  Type 'MySubClass' is not assignable to type 'MyClass\u003cT>'.\r\n    Types of property 'doIt' are incompatible.\r\n      Type '(data: Partial\u003cMyInterface>) => void' is not assignable to type '(data: Partial\u003cT>) => void'.\r\n        Types of parameters 'data' and 'data' are incompatible.\r\n          Type 'Partial\u003cT>' is not assignable to type 'Partial\u003cMyInterface>'.\r\n```\r\n","author":{"url":"https://github.com/isuda","@type":"Person","name":"isuda"},"datePublished":"2017-07-06T18:51:57Z","url":"https://github.com/microsoft/TypeScript/issues/16985"}

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:975d0689-8fd6-6406-d5ea-47ba7f8db673
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE82:3F4253:976DB1:CB6102:6B00E9BC
html-safe-nonce3b06b3c533d4881f39006122ed56ab879faffe4a26650cc8d73b6b4668281278
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTgyOjNGNDI1Mzo5NzZEQjE6Q0I2MTAyOjZCMDBFOUJDIiwidmlzaXRvcl9pZCI6IjMyNzM1ODEwNDc4MjQwNTA2MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacda885be54aca8856b58fa3e42cd2c75b58c143e6a977810dc6d43771db992f54
hovercard-subject-tagissue:241051687
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/16985/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b9e1f2684de985bba255d61b1d913e3edb5adfd52b754c270c0b4155b0a6bfb2/microsoft/TypeScript/issues/16985
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b9e1f2684de985bba255d61b1d913e3edb5adfd52b754c270c0b4155b0a6bfb2/microsoft/TypeScript/issues/16985
og:image:altThis is a simplified piece of code which demonstrates the problem. It compiles fine in 2.3.4 & 2.4.0, but produces a not assignable error in 2.4.1 and nightly. TypeScript Version: 2.4.1 / nightly (...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameisuda
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/16985#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F16985
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%2F16985
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/16985
Reloadhttps://github.com/microsoft/TypeScript/issues/16985
Reloadhttps://github.com/microsoft/TypeScript/issues/16985
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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/16985
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/16985
Regression: 2.4.1 Generic type mismatch https://github.com/microsoft/TypeScript/issues/16985#top
https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.5https://github.com/microsoft/TypeScript/milestone/49
https://github.com/isuda
Ian Suda (isuda)https://github.com/isuda
on Jul 6, 2017https://github.com/microsoft/TypeScript/issues/16985#issue-241051687
Nexthttps://github.com/microsoft/TypeScript/issues/16985?timeline_page=1
https://github.com/ericeslinger
Eric Eslinger (ericeslinger)https://github.com/ericeslinger
on Jul 7, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313753391
https://github.com/isuda
Ian Suda (isuda)https://github.com/isuda
on Jul 7, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313756509
Eric Eslinger (@ericeslinger)https://github.com/ericeslinger
https://github.com/ericeslinger
Eric Eslinger (ericeslinger)https://github.com/ericeslinger
on Jul 9, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313927549
https://github.com/ikatyang
Ika (ikatyang)https://github.com/ikatyang
on Jul 9, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313930465
https://github.com/mat3e
Mateusz Chrzonstowski (mat3e)https://github.com/mat3e
on Jul 9, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313946173
Ika (@ikatyang)https://github.com/ikatyang
https://github.com/estaub
Ed Staub (estaub)https://github.com/estaub
on Jul 10, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313997075
Mateusz Chrzonstowski (@mat3e)https://github.com/mat3e
https://github.com/ikatyang
Ika (ikatyang)https://github.com/ikatyang
on Jul 10, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313999496
Mateusz Chrzonstowski (@mat3e)https://github.com/mat3e
Ed Staub (@estaub)https://github.com/estaub
https://github.com/HerringtonDarkholme
Herrington Darkholme (HerringtonDarkholme)https://github.com/HerringtonDarkholme
on Jul 10, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314024332
https://github.com/Saviio
Saviio (Saviio)https://github.com/Saviio
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314641193
https://github.com/estaub
Ed Staub (estaub)https://github.com/estaub
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314782609
#16985 (comment)https://github.com/microsoft/TypeScript/issues/16985#issuecomment-313930465
https://github.com/Saviio
Saviio (Saviio)https://github.com/Saviio
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314814213
Ed Staub (@estaub)https://github.com/estaub
https://github.com/ikatyang
Ika (ikatyang)https://github.com/ikatyang
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314823702
Ed Staub (@estaub)https://github.com/estaub
Saviio (@Saviio)https://github.com/Saviio
https://github.com/Saviio
Saviio (Saviio)https://github.com/Saviio
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314832853
Ika (@ikatyang)https://github.com/ikatyang
https://github.com/ikatyang
Ika (ikatyang)https://github.com/ikatyang
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314837107
Saviio (@Saviio)https://github.com/Saviio
#17123 (comment)https://github.com/microsoft/TypeScript/issues/17123#issuecomment-314817188
https://github.com/Saviio
Saviio (Saviio)https://github.com/Saviio
on Jul 12, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-314839617
Ika (@ikatyang)https://github.com/ikatyang
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Jul 19, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-316533480
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 2.5https://github.com/microsoft/TypeScript/milestone/49
on Jul 19, 2017https://github.com/microsoft/TypeScript/issues/16985#event-1171118001
https://github.com/jcormont
Jelmer Cormont (jcormont)https://github.com/jcormont
on Jul 20, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-316591612
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Jul 22, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-317150143
#13448https://github.com/microsoft/TypeScript/pull/13448
#16368https://github.com/microsoft/TypeScript/pull/16368
https://github.com/awaltert
André Waltert (awaltert)https://github.com/awaltert
on Jul 24, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-317340989
https://github.com/estaub
Ed Staub (estaub)https://github.com/estaub
on Jul 24, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-317416459
André Waltert (@awaltert)https://github.com/awaltert
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Jul 25, 2017https://github.com/microsoft/TypeScript/issues/16985#event-1177110661
https://github.com/awaltert
André Waltert (awaltert)https://github.com/awaltert
on Jul 26, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-317992127
Ed Staub (@estaub)https://github.com/estaub
https://github.com/gcnew
Marin Marinov (gcnew)https://github.com/gcnew
on Jul 26, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-318009350
André Waltert (@awaltert)https://github.com/awaltert
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#17382https://github.com/microsoft/TypeScript/pull/17382
on Jul 28, 2017https://github.com/microsoft/TypeScript/issues/16985#event-1182751460
https://github.com/jcormont
Jelmer Cormont (jcormont)https://github.com/jcormont
on Jul 28, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-318525108
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
Eric Eslinger (@ericeslinger)https://github.com/ericeslinger
Saviio (@Saviio)https://github.com/Saviio
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Jul 28, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-318709649
Jelmer Cormont (@jcormont)https://github.com/jcormont
#16368https://github.com/microsoft/TypeScript/pull/16368
https://github.com/jcormont
Jelmer Cormont (jcormont)https://github.com/jcormont
on Jul 29, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-318810789
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Jul 29, 2017https://github.com/microsoft/TypeScript/issues/16985#issuecomment-318833845
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/16985#event-1682142393
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/16985
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/16985
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.5https://github.com/microsoft/TypeScript/milestone/49
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.