René's URL Explorer Experiment


Title: polymorphic arguments validation error · Issue #20268 · microsoft/TypeScript · GitHub

Open Graph Title: polymorphic arguments validation error · Issue #20268 · microsoft/TypeScript

X Title: polymorphic arguments validation error · Issue #20268 · microsoft/TypeScript

Description: TypeScript Version: 2.7.0-dev.20171126 (Introduced in 2.6) Code type Processor = (subj: T1) => T1 function doStuff(parentProcessors: Array>, childProcessors : A...

Open Graph Description: TypeScript Version: 2.7.0-dev.20171126 (Introduced in 2.6) Code type Processor = (subj: T1) => T1 function doStuff(parentProcessors: ...

X Description: TypeScript Version: 2.7.0-dev.20171126 (Introduced in 2.6) Code type Processor<T extends object> = <T1 extends T>(subj: T1) => T1 function doStuff<T extends object, T1 extends T&g...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"polymorphic arguments validation error","articleBody":"**TypeScript Version:**  2.7.0-dev.20171126 \r\n(Introduced in 2.6)\r\n\r\n**Code**\r\n\r\n```ts\r\ntype Processor\u003cT extends object> = \u003cT1 extends T>(subj: T1) => T1\r\nfunction doStuff\u003cT extends object, T1 extends T>(parentProcessors: Array\u003cProcessor\u003cT>>, childProcessors : Array\u003cProcessor\u003cT1>>) {\r\n    childProcessors.concat(parentProcessors);\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\npass validation (polymorphism etc.)\r\n\r\n**Actual behavior:**\r\nError:(3, 28) TS2345:Argument of type 'Processor\u003cT>[]' is not assignable to parameter of type 'Processor\u003cT1> | ReadonlyArray\u003cProcessor\u003cT1>>'.\r\n  Type 'Processor\u003cT>[]' is not assignable to type 'ReadonlyArray\u003cProcessor\u003cT1>>'.\r\n    Types of property 'indexOf' are incompatible.\r\n      Type '(searchElement: Processor\u003cT>, fromIndex?: number | undefined) => number' is not assignable to type '(searchElement: Processor\u003cT1>, fromIndex?: number | undefined) => number'.\r\n        Types of parameters 'searchElement' and 'searchElement' are incompatible.\r\n          Types of parameters 'subj' and 'subj' are incompatible.\r\n            Type 'T1' is not assignable to type 'T1'. Two different types with this name exist, but they are unrelated.\r\n              Type 'T' is not assignable to type 'T1'.\r\n                Type 'object' is not assignable to type 'T1'.","author":{"url":"https://github.com/amir-arad","@type":"Person","name":"amir-arad"},"datePublished":"2017-11-26T13:12:02Z","url":"https://github.com/microsoft/TypeScript/issues/20268"}

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:ed7f079d-c876-1bb2-941a-304eb992225f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8596:1DCB8C:CBDA98:10EE483:6B00F61D
html-safe-nonceae29d1bfc189381a0cb6fd0c3fdfbef567c6b2d142643db0614d41e7a536954d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTk2OjFEQ0I4QzpDQkRBOTg6MTBFRTQ4Mzo2QjAwRjYxRCIsInZpc2l0b3JfaWQiOiIyMDkzMjA4ODYxMDQwMjQ0MjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac46a16caefe4f5b33aca9917f7794eba9f43890cd978d6d091b02c30cd0e7fa6a
hovercard-subject-tagissue:276823779
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/20268/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8d848d5b0472fa98c605a5c99e56264d4fd2cb51418fc8c30d573f2b595465e2/microsoft/TypeScript/issues/20268
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8d848d5b0472fa98c605a5c99e56264d4fd2cb51418fc8c30d573f2b595465e2/microsoft/TypeScript/issues/20268
og:image:altTypeScript Version: 2.7.0-dev.20171126 (Introduced in 2.6) Code type Processor = (subj: T1) => T1 function doStuff(parentProcessors: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameamir-arad
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/20268#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F20268
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%2F20268
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/20268
Reloadhttps://github.com/microsoft/TypeScript/issues/20268
Reloadhttps://github.com/microsoft/TypeScript/issues/20268
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/20268
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20268
#20455https://github.com/microsoft/TypeScript/pull/20455
polymorphic arguments validation errorhttps://github.com/microsoft/TypeScript/issues/20268#top
#20455https://github.com/microsoft/TypeScript/pull/20455
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
https://github.com/amir-arad
Amir Arad (amir-arad)https://github.com/amir-arad
on Nov 26, 2017https://github.com/microsoft/TypeScript/issues/20268#issue-276823779
https://github.com/amir-arad
Amir Arad (amir-arad)https://github.com/amir-arad
on Nov 26, 2017https://github.com/microsoft/TypeScript/issues/20268#issuecomment-347008394
wix-incubator/wix-react-tools#188https://github.com/wix-incubator/wix-react-tools/pull/188
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 27, 2017https://github.com/microsoft/TypeScript/issues/20268#issuecomment-347331699
#17806https://github.com/microsoft/TypeScript/pull/17806
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Nov 27, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1360149743
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 27, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1360149828
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
on Nov 27, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1360149986
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 27, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1360150086
https://github.com/amir-arad
Amir Arad (amir-arad)https://github.com/amir-arad
on Nov 28, 2017https://github.com/microsoft/TypeScript/issues/20268#issuecomment-347601615
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#20455https://github.com/microsoft/TypeScript/pull/20455
on Dec 7, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1377663163
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Dec 8, 2017https://github.com/microsoft/TypeScript/issues/20268#event-1378980283
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
on Jan 17, 2018https://github.com/microsoft/TypeScript/issues/20268#event-1428864194
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Feb 2, 2018https://github.com/microsoft/TypeScript/issues/20268#issuecomment-362456755
#20455https://github.com/microsoft/TypeScript/pull/20455
#20455https://github.com/microsoft/TypeScript/pull/20455
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
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
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Feb 2, 2018https://github.com/microsoft/TypeScript/issues/20268#event-1454235311
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Feb 2, 2018https://github.com/microsoft/TypeScript/issues/20268#issuecomment-362614906
#15104https://github.com/microsoft/TypeScript/pull/15104
#17806https://github.com/microsoft/TypeScript/pull/17806
#17806https://github.com/microsoft/TypeScript/pull/17806
#15104https://github.com/microsoft/TypeScript/pull/15104
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
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 Feb 2, 2018https://github.com/microsoft/TypeScript/issues/20268#event-1455279104
microsofthttps://github.com/microsoft
on Jul 3, 2018https://github.com/microsoft/TypeScript/issues/20268#event-1712803594
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/20268
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/20268
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
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.