René's URL Explorer Experiment


Title: Generic conditional type prematurely resolves to one of the branches instead of deferring · Issue #57650 · microsoft/TypeScript · GitHub

Open Graph Title: Generic conditional type prematurely resolves to one of the branches instead of deferring · Issue #57650 · microsoft/TypeScript

X Title: Generic conditional type prematurely resolves to one of the branches instead of deferring · Issue #57650 · microsoft/TypeScript

Description: 🔎 Search Terms generic, conditional, premature / eager / defer, inline, 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about generic conditional types ⏯ Playground Lin...

Open Graph Description: 🔎 Search Terms generic, conditional, premature / eager / defer, inline, 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about ge...

X Description: 🔎 Search Terms generic, conditional, premature / eager / defer, inline, 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries abou...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generic conditional type prematurely resolves to one of the branches instead of deferring","articleBody":"### 🔎 Search Terms\n\ngeneric, conditional, premature / eager / defer, inline, \n\n### 🕗 Version & Regression Information\n\n- This is the behavior in every version I tried, and I reviewed the FAQ for entries about generic conditional types \n\n### ⏯ Playground Link\n\n[Playground link](https://www.typescriptlang.org/play?#code/C4TwDgpgBAkgzgOQK4FsBGEBOAeAKgPigF4oBtXAXSggA9gIA7AEzjIdQ0yoH4phMk0AFxQAZgEMANnAgAoUJFhwAYlJl5qdRiyhoA9nskRxDQiQnSIpKrXrNWua1F79BUERZmz54aABEAS0wIAGNgYiVVS2x4ZHQsbDh+AIYAc3xCW21WV2heAAZ3KABGAG5ZAHoKqBqAPW5vBWgAZQALPUxgEKRgPDNItQgYxA4Egkytez4BPKhCkTKfRRhmINDwkjaOrp7E5LT8cqqaqHrvWSA)\n\n### 💻 Code\n\n```ts\r\ntype IsNumber\u003cT> = [T] extends [number] ? true : false\r\ntype IsFalse\u003cT extends boolean> = false[] extends T[] ? true : false\r\n\r\ntype Direct = IsFalse\u003cIsNumber\u003cstring>> extends true ? 0 : 1;\r\n//   ^? type Direct = 0\r\n\r\ntype Shortcut\u003cT> = IsFalse\u003cIsNumber\u003cT>> extends true ? 0 : 1;\r\ntype Indirect = Shortcut\u003cstring>;\r\n//   ^? type Indirect = 1\r\n\r\n```\r\n\n\n### 🙁 Actual behavior\n\n`Direct` and `Indirect` are different.\n\n### 🙂 Expected behavior\n\n`Direct` and `Indirect` should be the same because `Direct` is just an inlined version of `Shortcut\u003cstring>`.\n\n### Additional information about the issue\n\nThis feels like a similar issue to #39364, #30708, #30020 and maybe some others, but many of those have been resolved already and yet this one remains.  Came from [this Stack Overflow question](https://stackoverflow.com/q/78104909/2887218).","author":{"url":"https://github.com/jcalz","@type":"Person","name":"jcalz"},"datePublished":"2024-03-05T14:50:00Z","url":"https://github.com/microsoft/TypeScript/issues/57650"}

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:87d5b6db-1afc-301a-1ec8-8403edf2bc7d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id955C:21890A:275B91:32C73A:6B04F110
html-safe-noncedf9a6cca779f3432563b1ca73dffb4eda2737e54d857d7cc39648f46c17ba8e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTVDOjIxODkwQToyNzVCOTE6MzJDNzNBOjZCMDRGMTEwIiwidmlzaXRvcl9pZCI6IjY0MDU4NjM0OTgwODUzNjM5ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4dd13994f9d0cc02df9d9b66de48865d515898fd7b6f649a012b4d508ff787a3
hovercard-subject-tagissue:2169432746
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/57650/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ff47bb7eaea387d1f487e9cfc23e268fa5563295c7a1820ced49fe7c36bc3a46/microsoft/TypeScript/issues/57650
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff47bb7eaea387d1f487e9cfc23e268fa5563295c7a1820ced49fe7c36bc3a46/microsoft/TypeScript/issues/57650
og:image:alt🔎 Search Terms generic, conditional, premature / eager / defer, inline, 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about ge...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejcalz
hostnamegithub.com
expected-hostnamegithub.com
Nonec0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b
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
releasecbe60d43d23e17438879ed212ad20068394651c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/57650#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F57650
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%2F57650
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/57650
Reloadhttps://github.com/microsoft/TypeScript/issues/57650
Reloadhttps://github.com/microsoft/TypeScript/issues/57650
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests319 (319)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/57650
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57650
Generic conditional type prematurely resolves to one of the branches instead of deferringhttps://github.com/microsoft/TypeScript/issues/57650#top
https://github.com/ahejlsberg
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issue-2169432746
Playground linkhttps://www.typescriptlang.org/play#code/C4TwDgpgBAkgzgOQK4FsBGEBOAeAKgPigF4oBtXAXSggA9gIA7AEzjIdQ0yoH4phMk0AFxQAZgEMANnAgAoUJFhwAYlJl5qdRiyhoA9nskRxDQiQnSIpKrXrNWua1F79BUERZmz54aABEAS0wIAGNgYiVVS2x4ZHQsbDh+AIYAc3xCW21WV2heAAZ3KABGAG5ZAHoKqBqAPW5vBWgAZQALPUxgEKRgPDNItQgYxA4Egkytez4BPKhCkTKfRRhmINDwkjaOrp7E5LT8cqqaqHrvWSA
#39364https://github.com/microsoft/TypeScript/issues/39364
#30708https://github.com/microsoft/TypeScript/issues/30708
#30020https://github.com/microsoft/TypeScript/issues/30020
this Stack Overflow questionhttps://stackoverflow.com/q/78104909/2887218
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1978974356
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1979116783
#56004https://github.com/microsoft/TypeScript/pull/56004
linkhttps://github.dev/microsoft/TypeScript/blob/353ccb7688351ae33ccf6e0acb913aa30621eaf4/src/compiler/checker.ts#L18716-L18732
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1979202960
1https://github.com/microsoft/TypeScript/issues/57650#user-content-fn-1-37af9e157e249b019502caeb5ee0c814
↩https://github.com/microsoft/TypeScript/issues/57650#user-content-fnref-1-37af9e157e249b019502caeb5ee0c814
https://github.com/rotu
Dan Rose (rotu)https://github.com/rotu
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1979240296
https://www.typescriptlang.org/play?jsx=0&ts=5.3.3#code/C4TwDgpgBAkgzgOQK4FsBGEBOAeAKgPigF4oBtXAXSggA9gIA7AEzjIdQ0yoH4phMk0AFxQAZgEMANnAgAoUJFhwAYlJl5qdRiyhoA9nskRxDQiQnSIpKrXrNWua1F79BUERZmz54aABEAS0wIAGNgYiVVS2x4ZHQsbDh+AIYAc3xCW21WV2heAAZ3KABGAG5ZAHoKqBqAPW5vBWgAZQALPUxgEKRgPDNItQgYxA4Egkytez4BPKhCkTKfRRhmINDwkjaOrp7E5LT8cqqaqHrG3wHLACYNLKn9Q2NTCNJPCBtJnXIeabcPQaWLXanW6wBuBAi8CiMhusVGOHGmjsOlyzjmRUWTVgq2CYSuES2IJ6NySmBS6SO1TqDSAAhttps://www.typescriptlang.org/play?jsx=0&ts=5.3.3#code/C4TwDgpgBAkgzgOQK4FsBGEBOAeAKgPigF4oBtXAXSggA9gIA7AEzjIdQ0yoH4phMk0AFxQAZgEMANnAgAoUJFhwAYlJl5qdRiyhoA9nskRxDQiQnSIpKrXrNWua1F79BUERZmz54aABEAS0wIAGNgYiVVS2x4ZHQsbDh+AIYAc3xCW21WV2heAAZ3KABGAG5ZAHoKqBqAPW5vBWgAZQALPUxgEKRgPDNItQgYxA4Egkytez4BPKhCkTKfRRhmINDwkjaOrp7E5LT8cqqaqHrG3wHLACYNLKn9Q2NTCNJPCBtJnXIeabcPQaWLXanW6wBuBAi8CiMhusVGOHGmjsOlyzjmRUWTVgq2CYSuES2IJ6NySmBS6SO1TqDSAA
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1979305034
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Mar 5, 2024https://github.com/microsoft/TypeScript/issues/57650#issuecomment-1979621940
Mateusz Burzyński (@Andarist)https://github.com/Andarist
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Mar 6, 2024https://github.com/microsoft/TypeScript/issues/57650#event-12031162430
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Mar 6, 2024https://github.com/microsoft/TypeScript/issues/57650#event-12031163008
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/57650
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57650
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Needs Investigationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.