Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend extensions with matching constraints when the extension type is the generic type parameter #72853

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

Rekkonnect
Copy link
Contributor

Closes #72457

Some of the examples in the original issue were already fixed, specifically those that were invoking the extension on a instance of type that is not a generic type parameter. This PR adds tests including both the fixed cases and the ones that were fixed with this PR.

@Rekkonnect Rekkonnect requested a review from a team as a code owner April 2, 2024 22:04
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 2, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 2, 2024
@CyrusNajmabadi CyrusNajmabadi merged commit 102794e into dotnet:main Apr 5, 2024
24 of 27 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extensions with constrained generic types are not recommended when invoked on a generic method parameter
3 participants