René's URL Explorer Experiment


Title: Enable type parameter lower-bound syntax · Issue #14520 · microsoft/TypeScript · GitHub

Open Graph Title: Enable type parameter lower-bound syntax · Issue #14520 · microsoft/TypeScript

X Title: Enable type parameter lower-bound syntax · Issue #14520 · microsoft/TypeScript

Description: TypeScript Version: 2.1.1 Code class Animal {} class Cat extends Animal {} class Kitten extends Cat{} function foo(a: A) { /* */ } Expected behavior: The type parameter A has the type Kitten as lower-bound. Actual behavio...

Open Graph Description: TypeScript Version: 2.1.1 Code class Animal {} class Cat extends Animal {} class Kitten extends Cat{} function foo(a: A) { /* */ } Expected behavior: The type parameter A has the ty...

X Description: TypeScript Version: 2.1.1 Code class Animal {} class Cat extends Animal {} class Kitten extends Cat{} function foo<A super Kitten>(a: A) { /* */ } Expected behavior: The type parameter A has ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable type parameter lower-bound syntax","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:**  2.1.1\r\n\r\n**Code**\r\n\r\n```ts\r\nclass Animal {}\r\nclass Cat extends Animal {}\r\nclass Kitten extends Cat{}\r\n\r\nfunction foo\u003cA super Kitten>(a: A) { /* */ }\r\n```\r\n\r\n**Expected behavior:**\r\nThe type parameter `A` has the type `Kitten` as lower-bound. \r\n\r\n**Actual behavior:**\r\nCompilation failure. The syntax is unsupported.\r\n\r\n**Discussion:**\r\nThe upper-bound counterpart of the failed code works fine:\r\n\r\n```ts\r\nclass Animal {}\r\nclass Cat extends Animal {}\r\nclass Kitten extends Cat{}\r\n\r\nfunction foo\u003cA extends Animal>(a: A) { /* */ }\r\n```\r\n\r\nPeople in issue [#13337](https://github.com/Microsoft/TypeScript/issues/13337) have suggested to use \r\n\r\n```ts\r\nfunction foo \u003cX extends Y, Y>(y: Y) { /* */ }\r\n```\r\n\r\nto lower-bound `Y` with `X`. But this does not cover the case where `X` is an actual type (instead of a type parameter). ","author":{"url":"https://github.com/jyuhuan","@type":"Person","name":"jyuhuan"},"datePublished":"2017-03-07T20:12:46Z","url":"https://github.com/microsoft/TypeScript/issues/14520"}

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:1754bc82-9471-ea26-983b-f35f6093fdeb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC762:5E1B7:E1ECC4:137944D:6AFBF0BF
html-safe-nonce51d13d283ca51a2aa1d60f72c224921834f60725d7319ff6a1292f0ac950c962
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzYyOjVFMUI3OkUxRUNDNDoxMzc5NDREOjZBRkJGMEJGIiwidmlzaXRvcl9pZCI6IjYyMjE0MzM4MTQyMzMzNzkwMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace4c90bbb1c9dc8fa69153e3bc16885f581b7196cc45fcd820b194604bad83815
hovercard-subject-tagissue:212545224
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/14520/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a76f43e7a9843d7af098ac2b16e46c87ec356e22e3000b8ecb32983a45f3d3e5/microsoft/TypeScript/issues/14520
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a76f43e7a9843d7af098ac2b16e46c87ec356e22e3000b8ecb32983a45f3d3e5/microsoft/TypeScript/issues/14520
og:image:altTypeScript Version: 2.1.1 Code class Animal {} class Cat extends Animal {} class Kitten extends Cat{} function foo(a: A) { /* */ } Expected behavior: The type parameter A has the ty...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejyuhuan
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
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
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/14520#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F14520
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%2F14520
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/14520
Reloadhttps://github.com/microsoft/TypeScript/issues/14520
Reloadhttps://github.com/microsoft/TypeScript/issues/14520
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests335 (335)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/pulse
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/14520
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/14520
Enable type parameter lower-bound syntaxhttps://github.com/microsoft/TypeScript/issues/14520#top
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/jyuhuan
Yuhuan Jiang (jyuhuan)https://github.com/jyuhuan
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/14520#issue-212545224
#13337https://github.com/Microsoft/TypeScript/issues/13337
Nexthttps://github.com/microsoft/TypeScript/issues/14520?timeline_page=1
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-284852308
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/14520#event-990285756
https://github.com/jyuhuan
Yuhuan Jiang (jyuhuan)https://github.com/jyuhuan
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-284879647
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#14524https://github.com/Microsoft/TypeScript/issues/14524
https://github.com/jklmli
Kevin Li (jklmli)https://github.com/jklmli
on Mar 7, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-284893332
https://github.com/btipling
Bjorn (btipling)https://github.com/btipling
on Mar 8, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-284936851
to indicate covariance and contravariancehttps://flowtype.org/docs/classes.html
https://github.com/HerringtonDarkholme
Herrington Darkholme (HerringtonDarkholme)https://github.com/HerringtonDarkholme
on Mar 9, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-285295490
Yuhuan Jiang (@jyuhuan)https://github.com/jyuhuan
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-function-parameters-bivarianthttps://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-function-parameters-bivariant
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 20, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-287830737
#14728https://github.com/microsoft/TypeScript/issues/14728
https://github.com/aaronbeall
Aaron Beall (aaronbeall)https://github.com/aaronbeall
on Mar 20, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-287844079
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 20, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-287868393
https://github.com/aaronbeall
Aaron Beall (aaronbeall)https://github.com/aaronbeall
on Mar 20, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-287917113
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 21, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-288069904
https://www.powerthesaurus.org/loosen/synonymshttps://www.powerthesaurus.org/loosen/synonyms
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 21, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-288074635
Aaron Beall (@aaronbeall)https://github.com/aaronbeall
https://github.com/aaronbeall
Aaron Beall (aaronbeall)https://github.com/aaronbeall
on Mar 21, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-288086335
Aleksey-Bykovhttps://github.com/Aleksey-Bykov
https://github.com/zpdDG4gta8XKpMCd
ZpdDG4gta (zpdDG4gta8XKpMCd)https://github.com/zpdDG4gta8XKpMCd
on Mar 22, 2017https://github.com/microsoft/TypeScript/issues/14520#issuecomment-288342635
Aaron Beall (@aaronbeall)https://github.com/aaronbeall
https://github.com/qwertie
David Piepgrass (qwertie)https://github.com/qwertie
on Jan 10, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-1885921472
https://github.com/Yona-Appletree
Yona Appletree (Yona-Appletree)https://github.com/Yona-Appletree
on Mar 29, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2026389880
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Jul 18, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2236401006
https://github.com/LPTK
Lionel Parreaux (LPTK)https://github.com/LPTK
on Jul 19, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2238667033
Joe Calzaretta (@jcalz)https://github.com/jcalz
https://github.com/RobertSandiford
RobertSandifordhttps://github.com/RobertSandiford
on Sep 8, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2336776425
Joe Calzaretta (@jcalz)https://github.com/jcalz
#18770https://github.com/microsoft/TypeScript/issues/18770
https://github.com/Zachiah
Zachiah Sawyer (Zachiah)https://github.com/Zachiah
on Sep 11, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2344635706
https://github.com/Snowflyt
Ge Gao (Snowflyt)https://github.com/Snowflyt
on Oct 30, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2445747672
Ramdahttps://github.com/ramda/ramda
current typing of R.includeshttps://github.com/ramda/types/blob/13d36d597c51793627a7b0dc0d83c62f1236029b/types/includes.d.ts#L3-L4
https://github.com/linkfang
Zhou Fang (linkfang)https://github.com/linkfang
on Dec 12, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2539994508
https://github.com/Nokel81
Sebastian Malton (Nokel81)https://github.com/Nokel81
on Dec 13, 2024https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2540480226
Zhou Fang (@linkfang)https://github.com/linkfang
https://github.com/JordanHoffman
Jordan Hoffman (JordanHoffman)https://github.com/JordanHoffman
on Jan 20, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2603012865
https://github.com/d07RiV
d07RiVhttps://github.com/d07RiV
on Feb 17, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2663645476
https://github.com/Nokel81
Sebastian Malton (Nokel81)https://github.com/Nokel81
on Feb 17, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2663722988
https://github.com/phaux
Niki (phaux)https://github.com/phaux
on Feb 17, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2664216150
d07RiVhttps://github.com/d07RiV
#21759https://github.com/microsoft/TypeScript/issues/21759
https://github.com/RobertSandiford
RobertSandifordhttps://github.com/RobertSandiford
on Feb 18, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2664736346
Playgroundhttps://www.typescriptlang.org/play/#code/C4TwDgpgBAYg9nKBeKBvAsAKAG4EMA2ArhAFxQB2hAtgEYQBOUAPlAM7D0CW5A5lgL5YsoSFABCuRigyYoUPEVIVqdegKGYR0AOpdguGvggAeAPIAaKABUAfMiimoEAB7AI5ACatrUAPwOoMnIIbAYNADNCcgBjYE44cig3dmMrJ1d3L1gEGwAKcIQyXU59QxN4OEtbAEo0LDkCuAA6BWJ7AHJcdvVMLGiE9igaSTIJKTR5AmIyAEYoQU0Idlzh+mqNfvJBxrIK+1RJxVn54SXgfIRqoA
https://github.com/patricio-hondagneu-simplisafe
Patricio Ezequiel Hondagneu Roig (patricio-hondagneu-simplisafe)https://github.com/patricio-hondagneu-simplisafe
on Mar 12, 2025https://github.com/microsoft/TypeScript/issues/14520#issuecomment-2719118867
Playground linkhttps://www.typescriptlang.org/play/#code/C4TwDgpgBAwg9gGzgJwMoGMAWEC2EByAhnlALxQDkCAlgOabAVQA+lAJocgNYUBQvEAB5gUwKOjgA7AM5jaEYAAVkEAGYRkKtvCRosuaOQAUASgBcsRCgzY8REqQB8UAN68o4qbM+6buaRY61vp2xBAA2gC6ZFDhVHQMFAA07Jw8kQDc7p4yYmAq6poQ2lZ6toZQSOiECKjAKITyAHTywACSwLhGAESKAEoAogBiA32DACIA+jAA8gAyM32TqDAAEgMAsgPdJlnZ1KpQRvlqGlpBZQZQAISk5JIArggIUABkrz7BttJN1JLoCAebAg0mOBTOxQufjwJhMrmyHhUwAeyEkUBOhXOpWhECyHgAvlAIAhpNA3B5EQoUWj4vRGHioPjePigA
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/14520
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/14520
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%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.