π Search Terms
type parameters constraints completions
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYVwdgxgLglg9mABFApgZygHgGIwE4aIoAeqYAJmogMoD0AVPbQDQ0oQLkB8AFAIYAuRLgJRWAIyHV2nAJSIA3gF8AUCqA
π» Code
function test<First extends S/**/, Second>(a: First, b: Second) {}
π Actual behavior
Second is not suggested at this marker
π Expected behavior
I'd expect Second to be suggested since depending on the latter type parameters is valid (even if weird at times).
Additional information about the issue
This 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
π Search Terms
type parameters constraints completions
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.4.0-dev.20231120#code/GYVwdgxgLglg9mABFApgZygHgGIwE4aIoAeqYAJmogMoD0AVPbQDQ0oQLkB8AFAIYAuRLgJRWAIyHV2nAJSIA3gF8AUCqA
π» Code
π Actual behavior
Secondis not suggested at this markerπ Expected behavior
I'd expect
Secondto be suggested since depending on the latter type parameters is valid (even if weird at times).Additional information about the issue
This 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