Title: Instantiation expressions should filter overloads by type parameter constraints · Issue #63126 · microsoft/TypeScript · GitHub
Open Graph Title: Instantiation expressions should filter overloads by type parameter constraints · Issue #63126 · microsoft/TypeScript
X Title: Instantiation expressions should filter overloads by type parameter constraints · Issue #63126 · microsoft/TypeScript
Description: 🔎 Search Terms call signature constructor signature type parameter 🕗 Version & Regression Information Tested in v4.7.4, v5.9.3 and Nightly (v6.0.0-dev.20260204) Syntax error before v4.7.4 ⏯ Playground Link https://www.typescriptlang.org/...
Open Graph Description: 🔎 Search Terms call signature constructor signature type parameter 🕗 Version & Regression Information Tested in v4.7.4, v5.9.3 and Nightly (v6.0.0-dev.20260204) Syntax error before v4.7.4 ⏯ Playgro...
X Description: 🔎 Search Terms call signature constructor signature type parameter 🕗 Version & Regression Information Tested in v4.7.4, v5.9.3 and Nightly (v6.0.0-dev.20260204) Syntax error before v4.7.4 ⏯ Pla...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/63126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instantiation expressions should filter overloads by type parameter constraints","articleBody":"### 🔎 Search Terms\n\ncall signature constructor signature type parameter\n\n### 🕗 Version & Regression Information\n\nTested in `v4.7.4`, `v5.9.3` and `Nightly` (`v6.0.0-dev.20260204`)\nSyntax error before `v4.7.4`\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?ts=5.9.3#code/LAKAJgpgxgNghgJwgAigewHYGcAuyBmAXMgN6jIXIA8AKgHwAUAHsTQJSsDc5lGEA7rWQQmOCBjBZkaAEYAraDkYtk7LqAC+3EKHTY8cZAF4CVEshnEAjMg11tAegeVkAPQD8oXZlwXjpq3tQJxcPYOcaAE8ABxQAcgwAVwBbGQgEOOQwNAgpDDQ8LDgcAEssfEjkHAALFD1cBDgSjDw42QUoHDigA\n\n### 💻 Code\n\n```ts\ndeclare const f: {\n \u003cT>(x: T): T;\n new\u003cT extends object>(x: T): T;\n};\n\nconst a = f\u003c{ b: 1 }>;\n// ^? const a: { (x: { b: 1; }): { b: 1; }; new (x: { b: 1; }): { b: 1; }; }\n\nconst b = f\u003c1>;\n// ^? const b: { (x: 1): 1; new \u003cT extends object>(x: T): T; }\n// Type 'number' does not satisfy the constraint 'object'\n```\n\n\n### 🙁 Actual behavior\n\nThe type argument I pass to the object must met the requirements of both signatures\n\n### 🙂 Expected behavior\n\nThe incompatible signature should just be filtered out, leaving only the compatible one\n```ts\nconst b = f\u003c1>;\n// ^? const b: (x: number) => number\n```\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/AFatNiBBa","@type":"Person","name":"AFatNiBBa"},"datePublished":"2026-02-11T08:28:59Z","url":"https://github.com/microsoft/TypeScript/issues/63126"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11b7116f-a6e0-42f6-396c-8a84f4025876 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A73C:1AE20C:2C418C7:3805F9A:6B01AB54 |
| html-safe-nonce | 3472bb35db2d84c89501c0ea3dadeb078eaee4834c2d8221f2da97ebe3acad11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzNDOjFBRTIwQzoyQzQxOEM3OjM4MDVGOUE6NkIwMUFCNTQiLCJ2aXNpdG9yX2lkIjoiNTMzNzIzMzY2NDQxOTkzMzAxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3a1c93db37f3dfa6abd5232bed148e61f012e05a9a8e73329c00bc72132e9fbc |
| hovercard-subject-tag | issue:3925338227 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/63126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e09bce0a3ddead6a1e4e9c466a3313cc51d9f1716d4f477a1fabaf8728734650/microsoft/TypeScript/issues/63126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e09bce0a3ddead6a1e4e9c466a3313cc51d9f1716d4f477a1fabaf8728734650/microsoft/TypeScript/issues/63126 |
| og:image:alt | 🔎 Search Terms call signature constructor signature type parameter 🕗 Version & Regression Information Tested in v4.7.4, v5.9.3 and Nightly (v6.0.0-dev.20260204) Syntax error before v4.7.4 ⏯ Playgro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AFatNiBBa |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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 | issues |
Links:
Viewport: width=device-width