René's URL Explorer Experiment


Title: Error message improvements for unions with identical discriminants by DanielRosenwasser · Pull Request #42598 · microsoft/TypeScript · GitHub

Open Graph Title: Error message improvements for unions with identical discriminants by DanielRosenwasser · Pull Request #42598 · microsoft/TypeScript

X Title: Error message improvements for unions with identical discriminants by DanielRosenwasser · Pull Request #42598 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Error message improvements for unions with identical discriminants by DanielRosenwasser · Pull Request #42598 · microsoft/TypeScript

Open Graph Description: This PR would fix #40934, but we will be changing the core logic used in #42556. However, I'm opening this because I wanted to point out the sorts of improvements changes we can see though if w...

X Description: This PR would fix #40934, but we will be changing the core logic used in #42556. However, I'm opening this because I wanted to point out the sorts of improvements changes we can see though ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9be1c04c-02f3-3167-fbd4-e3776f4aa6a6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA93E:344084:ABCA31:F01C22:6B0489DC
html-safe-nonce6dac0668470844d3d35ebbadd3d2251c0642f497059868fd8e3aba818c9c80ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTNFOjM0NDA4NDpBQkNBMzE6RjAxQzIyOjZCMDQ4OURDIiwidmlzaXRvcl9pZCI6IjYzODA3NzQwNzcyNTg1NjYxMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac753298ed4f61b539c4f3f96fb21a93caccf166f99acea0dc14078063493a6dcd
hovercard-subject-tagpull_request:565601558
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/42598/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6469b217636444fdc72adc92ad99ae6aa79f411cff207b6f79a55816190a4330/microsoft/TypeScript/pull/42598
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6469b217636444fdc72adc92ad99ae6aa79f411cff207b6f79a55816190a4330/microsoft/TypeScript/pull/42598
og:image:altThis PR would fix #40934, but we will be changing the core logic used in #42556. However, I'm opening this because I wanted to point out the sorts of improvements changes we can see though if w...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielRosenwasser
hostnamegithub.com
expected-hostnamegithub.com
None1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70
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
releasef5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/42598#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F42598
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%2Fpull%2F42598
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/42598
Reloadhttps://github.com/microsoft/TypeScript/pull/42598
Reloadhttps://github.com/microsoft/TypeScript/pull/42598
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests318 (318)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
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
mainhttps://github.com/microsoft/TypeScript/tree/main
errorMessageImprovementsOnDiscriminanthttps://github.com/microsoft/TypeScript/tree/errorMessageImprovementsOnDiscriminant
Conversationhttps://github.com/microsoft/TypeScript/pull/42598
Commits3 (3)https://github.com/microsoft/TypeScript/pull/42598/commits
Checkshttps://github.com/microsoft/TypeScript/pull/42598/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/42598/files
Error message improvements for unions with identical discriminantshttps://github.com/microsoft/TypeScript/pull/42598#top
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
mainhttps://github.com/microsoft/TypeScript/tree/main
errorMessageImprovementsOnDiscriminanthttps://github.com/microsoft/TypeScript/tree/errorMessageImprovementsOnDiscriminant
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#issue-798857937
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
#40934https://github.com/microsoft/TypeScript/issues/40934
#42556https://github.com/microsoft/TypeScript/pull/42556
#42556https://github.com/microsoft/TypeScript/pull/42556
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
January 28, 2021 15:51https://github.com/microsoft/TypeScript/pull/42598#commits-pushed-7da2b51
https://github.com/DanielRosenwasser
Remove cast, reduce line length.https://github.com/microsoft/TypeScript/pull/42598/commits/7da2b5129791ea820b9ebc4846d02c49eee5ebd2
7da2b51https://github.com/microsoft/TypeScript/pull/42598/commits/7da2b5129791ea820b9ebc4846d02c49eee5ebd2
https://github.com/DanielRosenwasser
Don't throw away results if there are multiple discriminants.https://github.com/microsoft/TypeScript/pull/42598/commits/96095efa2d63cac79c46d1e07379a9f08b9a711f
96095efhttps://github.com/microsoft/TypeScript/pull/42598/commits/96095efa2d63cac79c46d1e07379a9f08b9a711f
https://github.com/DanielRosenwasser
Accepted baselines.https://github.com/microsoft/TypeScript/pull/42598/commits/a3b8ad22ebd56deec43eb07b193ed832d0a146b7
a3b8ad2https://github.com/microsoft/TypeScript/pull/42598/commits/a3b8ad22ebd56deec43eb07b193ed832d0a146b7
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Experiment https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3AExperiment
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#event-4276821003
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Wesley Wigham (weswigham)https://github.com/weswigham
February 2, 2021 02:04https://github.com/microsoft/TypeScript/pull/42598#event-4276821011
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021 https://github.com/microsoft/TypeScript/pull/42598#pullrequestreview-580926960
View reviewed changes https://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/microsoft/TypeScript/pull/42598#pullrequestreview-580926960
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
tests/baselines/reference/contextualTypeShouldBeLiteral.errors.txthttps://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7#diff-6535af6692752a3513aaf11b33dd7b5da7d4255f173af23d810edb8fe0dcfb0b
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r568271829
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Feb 3, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r569646638
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
tests/baselines/reference/excessPropertyCheckWithMultipleDiscriminants.errors.txthttps://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7#diff-caf79d8e44dd8edb519739df024c0487856c295469d1caf832d258702a599bd1
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r568272070
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
tests/baselines/reference/excessPropertyCheckWithUnions.errors.txthttps://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7#diff-ecfa2e7bd4c2d0c5a48787c358cf980c5066bed86054ae4210b5d0b308f9e188
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r568272567
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Feb 3, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r569643864
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
tests/baselines/reference/excessPropertyCheckWithUnions.errors.txthttps://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7#diff-ecfa2e7bd4c2d0c5a48787c358cf980c5066bed86054ae4210b5d0b308f9e188
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r568272710
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
tests/baselines/reference/excessPropertyCheckWithUnions.errors.txthttps://github.com/microsoft/TypeScript/pull/42598/files/a3b8ad22ebd56deec43eb07b193ed832d0a146b7#diff-ecfa2e7bd4c2d0c5a48787c358cf980c5066bed86054ae4210b5d0b308f9e188
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Feb 2, 2021https://github.com/microsoft/TypeScript/pull/42598#discussion_r568273414
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Feb 5, 2021https://github.com/microsoft/TypeScript/pull/42598#issuecomment-774265988
TypeScript Bot (@typescript-bot)https://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 5, 2021https://github.com/microsoft/TypeScript/pull/42598#issuecomment-774266016
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
a3b8ad2https://github.com/microsoft/TypeScript/commit/a3b8ad22ebd56deec43eb07b193ed832d0a146b7
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95115
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Feb 5, 2021https://github.com/microsoft/TypeScript/pull/42598#issuecomment-774275948
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
an installable tgzhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/95115/artifacts?artifactName=tgz&fileId=C0B3D5B64589FB4C43656D06646358C3406739D7979063948B41AA3DA03B534302&fileName=/typescript-4.2.0-insiders.20210205.tgz
for this buildhttps://www.staging-typescript.org/play?ts=4.2.0-pr-42598-2
npmhttps://www.npmjs.com/package/@typescript-deploys/pr-build/v/4.2.0-pr-42598-2
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
March 4, 2022 22:35https://github.com/microsoft/TypeScript/pull/42598#event-6188114444
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
May 24, 2022https://github.com/microsoft/TypeScript/pull/42598#issuecomment-1136501407
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
May 24, 2022https://github.com/microsoft/TypeScript/pull/42598#event-6672779564
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/42598#event-20417370589
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
August 28, 2026 19:40https://github.com/microsoft/TypeScript/pull/42598#event-30184571379
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%2F42598
https://github.com/andrewbranch
Andrew Branch (andrewbranch) https://github.com/andrewbranch
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
Experiment https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3AExperiment
Union with non-distinct discriminating property breaks inference somewhat (confusing error messages, invalid intellisense) https://github.com/microsoft/TypeScript/issues/40934
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42598
https://github.com/DanielRosenwasser
https://github.com/andrewbranch
https://github.com/typescript-bot
https://github.com/sandersn
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.