René's URL Explorer Experiment


Title: Improve logic for choosing between co- and contra-variant inferences by ahejlsberg · Pull Request #46392 · microsoft/TypeScript · GitHub

Open Graph Title: Improve logic for choosing between co- and contra-variant inferences by ahejlsberg · Pull Request #46392 · microsoft/TypeScript

X Title: Improve logic for choosing between co- and contra-variant inferences by ahejlsberg · Pull Request #46392 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Improve logic for choosing between co- and contra-variant inferences by ahejlsberg · Pull Request #46392 · microsoft/TypeScript

Open Graph Description: Fixes #45603.

X Description: Fixes #45603.

Opengraph URL: https://github.com/microsoft/TypeScript/pull/46392

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:059c33b1-aece-d24f-b4bb-a5855e79ed81
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCA38:37261F:7FF87:ACAE4:6A612C6D
html-safe-nonceb6fbce1eb203597583267f4ee73261338494b6423935aea0e5b831e358ee2c40
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTM4OjM3MjYxRjo3RkY4NzpBQ0FFNDo2QTYxMkM2RCIsInZpc2l0b3JfaWQiOiI0MjkyMDQ3MDAzNDkxMzE0Nzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb4860fdfd85a0816403612b715d8a3676f711c69161dff8157bc8d79c1a8cbd7
hovercard-subject-tagpull_request:759548575
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/46392/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e50dfc13a472bd4dbbf3fc42a34f67d5b98670a9ff5bf4a894a327f63d3a060b/microsoft/TypeScript/pull/46392
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e50dfc13a472bd4dbbf3fc42a34f67d5b98670a9ff5bf4a894a327f63d3a060b/microsoft/TypeScript/pull/46392
og:image:altFixes #45603.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None6896275b704df9b9258326d49c8695aecd98d736cd9eeda7bcbb1790ac97d3ad
turbo-cache-controlno-cache
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
releaseaf89f6cd55841b57fa09b6b0ed9e3f8f2e94b05d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/46392#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F46392
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F46392
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/46392
Reloadhttps://github.com/microsoft/TypeScript/pull/46392
Reloadhttps://github.com/microsoft/TypeScript/pull/46392
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 21 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
ahejlsberghttps://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
fix45603https://github.com/microsoft/TypeScript/tree/fix45603
Conversationhttps://github.com/microsoft/TypeScript/pull/46392
Commits2 (2)https://github.com/microsoft/TypeScript/pull/46392/commits
Checkshttps://github.com/microsoft/TypeScript/pull/46392/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/46392/files
Improve logic for choosing between co- and contra-variant inferenceshttps://github.com/microsoft/TypeScript/pull/46392#top
ahejlsberghttps://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
fix45603https://github.com/microsoft/TypeScript/tree/fix45603
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Oct 15, 2021https://github.com/microsoft/TypeScript/pull/46392#issue-1027888203
#45603https://github.com/microsoft/TypeScript/issues/45603
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
ahejlsberghttps://github.com/ahejlsberg
October 15, 2021 16:25https://github.com/microsoft/TypeScript/pull/46392#commits-pushed-68ef6c9
https://github.com/ahejlsberg
Improve logic for choosing between co- and contra-variant inferenceshttps://github.com/microsoft/TypeScript/pull/46392/commits/68ef6c9895d1307688776ea25ca31d6154c2e664
68ef6c9https://github.com/microsoft/TypeScript/pull/46392/commits/68ef6c9895d1307688776ea25ca31d6154c2e664
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/46392/commits/939b5b44f22745f4192cb0807cad6c3bc14bb21e
939b5b4https://github.com/microsoft/TypeScript/pull/46392/commits/939b5b44f22745f4192cb0807cad6c3bc14bb21e
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
ahejlsberghttps://github.com/ahejlsberg
Oct 15, 2021https://github.com/microsoft/TypeScript/pull/46392#event-5472324134
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Oct 15, 2021https://github.com/microsoft/TypeScript/pull/46392#event-5472324159
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
andrewbranchhttps://github.com/andrewbranch
October 15, 2021 23:32https://github.com/microsoft/TypeScript/pull/46392#event-5472324428
https://github.com/weswigham
weswighamhttps://github.com/weswigham
Oct 18, 2021 https://github.com/microsoft/TypeScript/pull/46392#pullrequestreview-782561122
View reviewed changes https://github.com/microsoft/TypeScript/pull/46392/files/939b5b44f22745f4192cb0807cad6c3bc14bb21e
https://github.com/weswigham
weswighamhttps://github.com/weswigham
Oct 18, 2021https://github.com/microsoft/TypeScript/pull/46392#issuecomment-946151153
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Oct 18, 2021https://github.com/microsoft/TypeScript/pull/46392#issuecomment-946151190
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
@weswighamhttps://github.com/weswigham
939b5b4https://github.com/microsoft/TypeScript/commit/939b5b44f22745f4192cb0807cad6c3bc14bb21e
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=113202
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Oct 18, 2021https://github.com/microsoft/TypeScript/pull/46392#issuecomment-946151191
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
@weswighamhttps://github.com/weswigham
939b5b4https://github.com/microsoft/TypeScript/commit/939b5b44f22745f4192cb0807cad6c3bc14bb21e
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=113204
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Oct 18, 2021https://github.com/microsoft/TypeScript/pull/46392#issuecomment-946151193
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
@weswighamhttps://github.com/weswigham
939b5b4https://github.com/microsoft/TypeScript/commit/939b5b44f22745f4192cb0807cad6c3bc14bb21e
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=113203
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
https://github.com/andrewbranch
andrewbranchhttps://github.com/andrewbranch
Oct 19, 2021 https://github.com/microsoft/TypeScript/pull/46392#pullrequestreview-783517802
View reviewed changes https://github.com/microsoft/TypeScript/pull/46392/files/939b5b44f22745f4192cb0807cad6c3bc14bb21e
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
56b6279https://github.com/microsoft/TypeScript/commit/56b627981892844f37361d4854e339aa00c771db
Oct 19, 2021https://github.com/microsoft/TypeScript/pull/46392#event-5486721468
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
October 19, 2021 16:58https://github.com/microsoft/TypeScript/pull/46392#event-5486721579
https://github.com/andrewbranch
andrewbranchhttps://github.com/andrewbranch
Oct 19, 2021 https://github.com/microsoft/TypeScript/pull/46392#ref-issue-995907151
Type checking sensitive to loading order #45859 https://github.com/microsoft/TypeScript/issues/45859
mprobsthttps://github.com/mprobst
Jan 10, 2022 https://github.com/microsoft/TypeScript/pull/46392#ref-commit-b1befcd
https://github.com/ahejlsberg
https://github.com/mprobst
Improve logic for choosing between co- and contra-variant inferences (https://github.com/mprobst/TypeScript/commit/b1befcdfaabb1c8c00646b1046a7a598eaaf5af1
m…https://github.com/microsoft/TypeScript/pull/46392
b1befcdhttps://github.com/mprobst/TypeScript/commit/b1befcdfaabb1c8c00646b1046a7a598eaaf5af1
…icrosoft#46392https://github.com/microsoft/TypeScript/pull/46392
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Mar 22, 2024 https://github.com/microsoft/TypeScript/pull/46392#ref-pullrequest-2203140643
Improve logic that chooses co- vs. contra-variant inferences #57909 https://github.com/microsoft/TypeScript/pull/57909
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/46392#event-20417458412
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F46392
https://github.com/weswigham
weswigham https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/46392/files/939b5b44f22745f4192cb0807cad6c3bc14bb21e
https://github.com/andrewbranch
andrewbranch https://github.com/andrewbranch
https://github.com/microsoft/TypeScript/pull/46392/files/939b5b44f22745f4192cb0807cad6c3bc14bb21e
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Declaration order dependence when inferring to a union https://github.com/microsoft/TypeScript/issues/45603
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/46392
https://github.com/ahejlsberg
https://github.com/weswigham
https://github.com/typescript-bot
https://github.com/andrewbranch
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.