Title: Latter type parameters are not suggested in constraints of the preceding ones · Issue #56474 · microsoft/TypeScript · GitHub
Open Graph Title: Latter type parameters are not suggested in constraints of the preceding ones · Issue #56474 · microsoft/TypeScript
X Title: Latter type parameters are not suggested in constraints of the preceding ones · Issue #56474 · microsoft/TypeScript
Description: 🔎 Search Terms type parameters constraints completions 🕗 Version & Regression Information This changed in #52690 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYVwdgxgLglg9mABFApgZygHgGIwE4aIoAeqYAJmogM...
Open Graph Description: 🔎 Search Terms type parameters constraints completions 🕗 Version & Regression Information This changed in #52690 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYV...
X Description: 🔎 Search Terms type parameters constraints completions 🕗 Version & Regression Information This changed in #52690 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/56474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Latter type parameters are not suggested in constraints of the preceding ones","articleBody":"### 🔎 Search Terms\n\ntype parameters constraints completions\n\n### 🕗 Version & Regression Information\n\n- This changed in https://github.com/microsoft/TypeScript/pull/52690\r\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYVwdgxgLglg9mABFApgZygHgGIwE4aIoAeqYAJmogMoD0AVPbQDQ0oQLkB8AFAIYAuRLgJRWAIyHV2nAJSIA3gF8AUCqA\n\n### 💻 Code\n\n```ts\r\nfunction test\u003cFirst extends S/**/, Second>(a: First, b: Second) {}\r\n```\r\n\n\n### 🙁 Actual behavior\n\n`Second` is not suggested at this marker\n\n### 🙂 Expected behavior\n\nI'd expect `Second` to be suggested since depending on the latter type parameters is valid (even if weird at times). \n\n### Additional information about the issue\n\nThis change was called out in comments of the PR that introduced this (initially it focused only on expression-space parameters) but I wonder if this is something that could be revisited. cc @zardoy ","author":{"url":"https://github.com/Andarist","@type":"Person","name":"Andarist"},"datePublished":"2023-11-20T18:35:02Z","url":"https://github.com/microsoft/TypeScript/issues/56474"}
| 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:bc4d4f44-1aee-0a54-30f6-69f1fc1c26cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEE6:6DC60:1E64631:26578CE:6B019847 |
| html-safe-nonce | 43987dfcfb4ae93b36ef876da36cfac34d2f9674a74a1d675c60dd922edfd385 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUU2OjZEQzYwOjFFNjQ2MzE6MjY1NzhDRTo2QjAxOTg0NyIsInZpc2l0b3JfaWQiOiIzNTg5MDkxOTYxMDIzMzM4NTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ec378cf4e68ce0bddc7bf6be5c9ca1ca1d170fcffd6eb337ed41eee0d494513d |
| hovercard-subject-tag | issue:2002780794 |
| 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/56474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2bd446ee910da6d5541ee713e7a9eff16787084e40ad2ea9b0f3d65e08a345ad/microsoft/TypeScript/issues/56474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2bd446ee910da6d5541ee713e7a9eff16787084e40ad2ea9b0f3d65e08a345ad/microsoft/TypeScript/issues/56474 |
| og:image:alt | 🔎 Search Terms type parameters constraints completions 🕗 Version & Regression Information This changed in #52690 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYV... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andarist |
| 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