| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:df429f40-300b-f2e2-65be-cfb753004efd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A4F6:154D88:1DFB598:264F6FD:6B01A5BB |
| html-safe-nonce | 84ab77c22e4e1508328108199bb8aa543e6e2c4348dee2f955b944faf80ed6d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEY2OjE1NEQ4ODoxREZCNTk4OjI2NEY2RkQ6NkIwMUE1QkIiLCJ2aXNpdG9yX2lkIjoiOTA1NTUyMzY5ODgxNTExNjczMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8da0278ea8a9db394c099434da20d20c01daa3844f83d3d7236b6ba017feec4a |
| hovercard-subject-tag | pull_request:203917983 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/25937/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/151a8cdbc9ea3fa38b6402c6792cc77701070aa35101cd348f37a0bb44c795fc/microsoft/TypeScript/pull/25937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/151a8cdbc9ea3fa38b6402c6792cc77701070aa35101cd348f37a0bb44c795fc/microsoft/TypeScript/pull/25937 |
| og:image:alt | (during inference).
Fixes #13118
I've kept it minimal - we only dive into the return type if there's a contextual return type whose contextual checking could fix a type parameter before the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weswigham |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/microsoft/TypeScript/pull/25937#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F25937 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F25937 |
| 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 |
| Reload | https://github.com/microsoft/TypeScript/pull/25937 |
| Reload | https://github.com/microsoft/TypeScript/pull/25937 |
| Reload | https://github.com/microsoft/TypeScript/pull/25937 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests312 (312) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/insights |
| https://github.com/microsoft/TypeScript |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| microsoft:master | https://github.com/microsoft/TypeScript/tree/master |
| weswigham:retain-noncontextual-return-bits | https://github.com/weswigham/TypeScript/tree/retain-noncontextual-return-bits |
| Conversation | https://github.com/microsoft/TypeScript/pull/25937 |
| Commits5 (5) | https://github.com/microsoft/TypeScript/pull/25937/commits |
| Checks | https://github.com/microsoft/TypeScript/pull/25937/checks |
| Files changed | https://github.com/microsoft/TypeScript/pull/25937/files |
| Still generate signatures in SkipContextSensitive mode just to match on return types | https://github.com/microsoft/TypeScript/pull/25937#top |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| microsoft:master | https://github.com/microsoft/TypeScript/tree/master |
| weswigham:retain-noncontextual-return-bits | https://github.com/weswigham/TypeScript/tree/retain-noncontextual-return-bits |
|
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Jul 25, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issue-344548566 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| #13118 | https://github.com/microsoft/TypeScript/issues/13118 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
|
| https://github.com/weswigham |
| Still generate signatures in SkipContextSensitive mode just to match … | https://github.com/microsoft/TypeScript/pull/25937/commits/2114f4ad05c0282fa311a4e3a0c78b6a55aa6b9c |
| 2114f4a | https://github.com/microsoft/TypeScript/pull/25937/commits/2114f4ad05c0282fa311a4e3a0c78b6a55aa6b9c |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| July 25, 2018 18:04 | https://github.com/microsoft/TypeScript/pull/25937#event-1753250604 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
|
Jul 25, 2018
| https://github.com/microsoft/TypeScript/pull/25937#pullrequestreview-140434206 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/25937/files/2114f4ad05c0282fa311a4e3a0c78b6a55aa6b9c |
| src/compiler/checker.ts | https://github.com/microsoft/TypeScript/pull/25937/files/2114f4ad05c0282fa311a4e3a0c78b6a55aa6b9c#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Jul 25, 2018 | https://github.com/microsoft/TypeScript/pull/25937#discussion_r205208926 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
|
Aug 1, 2018
| https://github.com/microsoft/TypeScript/pull/25937#ref-issue-179307768 |
|
Use return type as an inference location
#11152
| https://github.com/microsoft/TypeScript/issues/11152 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| August 1, 2018 15:26 | https://github.com/microsoft/TypeScript/pull/25937#commits-pushed-d84df77 |
|
| https://github.com/weswigham |
| Add cache for context-free type of a signature node | https://github.com/microsoft/TypeScript/pull/25937/commits/d84df7710fe9e448721c5534c49cfa0d4c664953 |
| d84df77 | https://github.com/microsoft/TypeScript/pull/25937/commits/d84df7710fe9e448721c5534c49cfa0d4c664953 |
|
| https://github.com/weswigham |
| Merge branch 'master' into retain-noncontextual-return-bits | https://github.com/microsoft/TypeScript/pull/25937/commits/713ef383a1667e610202591d1465b31154473450 |
| 713ef38 | https://github.com/microsoft/TypeScript/pull/25937/commits/713ef383a1667e610202591d1465b31154473450 |
|
| https://github.com/weswigham |
| Accept post-merge baseline | https://github.com/microsoft/TypeScript/pull/25937/commits/e061ea123df1d04e4026f5c4418474decf33419a |
| e061ea1 | https://github.com/microsoft/TypeScript/pull/25937/commits/e061ea123df1d04e4026f5c4418474decf33419a |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Aug 3, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-410110309 |
| TypeScript Bot (@typescript-bot) | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/typescript-bot |
| TypeScript Bot (typescript-bot) | https://github.com/typescript-bot |
| Aug 3, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-410110313 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| e061ea1 | https://github.com/microsoft/TypeScript/commit/e061ea123df1d04e4026f5c4418474decf33419a |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/index?buildId=9189 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Aug 6, 2018
| https://github.com/microsoft/TypeScript/pull/25937#pullrequestreview-143799031 |
|
View reviewed changes
| https://github.com/microsoft/TypeScript/pull/25937/files/e061ea123df1d04e4026f5c4418474decf33419a |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Aug 8, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-411584990 |
| TypeScript Bot (@typescript-bot) | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/typescript-bot |
| TypeScript Bot (typescript-bot) | https://github.com/typescript-bot |
| Aug 8, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-411584995 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| e061ea1 | https://github.com/microsoft/TypeScript/commit/e061ea123df1d04e4026f5c4418474decf33419a |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/index?buildId=9491 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
|
| https://github.com/weswigham |
| Merge branch 'master' into retain-noncontextual-return-bits | https://github.com/microsoft/TypeScript/pull/25937/commits/8b71962a26a762c60aeefabe1bf607ebc9a90108 |
| 8b71962 | https://github.com/microsoft/TypeScript/pull/25937/commits/8b71962a26a762c60aeefabe1bf607ebc9a90108 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Aug 8, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-411590191 |
| TypeScript Bot (@typescript-bot) | https://github.com/typescript-bot |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/typescript-bot |
| TypeScript Bot (typescript-bot) | https://github.com/typescript-bot |
| Aug 8, 2018 | https://github.com/microsoft/TypeScript/pull/25937#issuecomment-411590206 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| Wesley Wigham (@weswigham) | https://github.com/weswigham |
| 8b71962 | https://github.com/microsoft/TypeScript/commit/8b71962a26a762c60aeefabe1bf607ebc9a90108 |
| here | https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/index?buildId=9492 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| f6af618 | https://github.com/microsoft/TypeScript/commit/f6af618ab9c77ade6dcd64f7a5d1bdbf75c6607e |
| Aug 9, 2018 | https://github.com/microsoft/TypeScript/pull/25937#event-1780742797 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| August 9, 2018 17:17 | https://github.com/microsoft/TypeScript/pull/25937#event-1780742919 |
| Albert Siddhartha Slawinski (errendir) | https://github.com/errendir |
|
Aug 11, 2018
| https://github.com/microsoft/TypeScript/pull/25937#ref-commit-81604e3 |
|
| https://github.com/errendir |
| Merge remote-tracking branch 'origin/master' into debug-messages | https://github.com/errendir/TypeScript/commit/81604e3f22b4a617e7c8616b70e043c0c6961291 |
| 81604e3 | https://github.com/errendir/TypeScript/commit/81604e3f22b4a617e7c8616b70e043c0c6961291 |
| microsoft#26360 | https://github.com/microsoft/TypeScript/pull/26360 |
| microsoft#26364 | https://github.com/microsoft/TypeScript/pull/26364 |
| microsoft#26341 | https://github.com/microsoft/TypeScript/pull/26341 |
| microsoft#26358 | https://github.com/microsoft/TypeScript/pull/26358 |
| @template | https://github.com/template |
| microsoft#26283 | https://github.com/microsoft/TypeScript/pull/26283 |
| microsoft#25995 | https://github.com/microsoft/TypeScript/pull/25995 |
| microsoft#26287 | https://github.com/microsoft/TypeScript/pull/26287 |
| microsoft#26334 | https://github.com/microsoft/TypeScript/pull/26334 |
| microsoft#26312 | https://github.com/microsoft/TypeScript/pull/26312 |
| microsoft#25937 | https://github.com/microsoft/TypeScript/pull/25937 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Aug 25, 2018
| https://github.com/microsoft/TypeScript/pull/25937#ref-issue-353325614 |
|
argument types inference breaks for specific object literal method syntax
#26629
| https://github.com/microsoft/TypeScript/issues/26629 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Nov 18, 2019
| https://github.com/microsoft/TypeScript/pull/25937#ref-issue-515467827 |
|
Generic inference different between equivalent function expression and shorthand method in object literal (vol 2)
#34849
| https://github.com/microsoft/TypeScript/issues/34849 |
| https://github.com/ahejlsberg |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
|
Jan 28, 2020
| https://github.com/microsoft/TypeScript/pull/25937#ref-pullrequest-556392018 |
|
Fix contextually typed parameter issues
#36476
| https://github.com/microsoft/TypeScript/pull/36476 |
| https://github.com/microsoft |
| Microsoft (microsoft) | https://github.com/microsoft |
| Oct 21, 2025 | https://github.com/microsoft/TypeScript/pull/25937#event-20415748402 |
| https://github.com/typescript-bot |
| TypeScript Bot (typescript-bot) | https://github.com/typescript-bot |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Oct 21, 2025 | https://github.com/microsoft/TypeScript/pull/25937#event-20415749028 |
| https://github.co/hiddenchars |
| https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F25937 |
|
| https://github.com/ahejlsberg |
|
Anders Hejlsberg (ahejlsberg)
| https://github.com/ahejlsberg |
|
| https://github.com/microsoft/TypeScript/pull/25937/files/e061ea123df1d04e4026f5c4418474decf33419a |
|
| https://github.com/mhegazy |
|
Mohamed Hegazy (mhegazy)
| https://github.com/mhegazy |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
|
| https://github.com/weswigham |
|
Wesley Wigham (weswigham)
| https://github.com/weswigham |
|
Wrong inference from function return argument
| https://github.com/microsoft/TypeScript/issues/13118 |
| Please reload this page | https://github.com/microsoft/TypeScript/pull/25937 |
|
| https://github.com/weswigham |
|
| https://github.com/typescript-bot |
|
| https://github.com/ahejlsberg |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |