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

Respect generic arity in method uniqueness #17804

Conversation

T-Gro
Copy link
Member

@T-Gro T-Gro commented Sep 27, 2024

Description

Fixes #17796 .
An internal function for finding method definition based on a method reference existed for a long time, used on multiple places (events, base type calls,..).
It checked for equal name, return type, argument number and argument types.

However, there are APIs which are equal in all of that, and only differ in their generic arity = the number of generic arguments.

The very common AddSingleton<> vs AddSingleton<,> is one of them.

@T-Gro T-Gro requested a review from a team as a code owner September 27, 2024 07:29
@T-Gro T-Gro linked an issue Sep 27, 2024 that may be closed by this pull request
@T-Gro T-Gro self-assigned this Sep 27, 2024
@T-Gro T-Gro added this to the September-2024 milestone Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/9.0.200.md

@T-Gro
Copy link
Member Author

T-Gro commented Sep 27, 2024

/backport to release/dev17.12

Copy link
Contributor

Started backporting to release/dev17.12: https://github.com/dotnet/fsharp/actions/runs/11066471151

…ical-argument-types' of https://github.com/dotnet/fsharp into 17796-internal-error-multiple-methods-appear-with-identical-argument-types
@T-Gro T-Gro merged commit 86b7584 into main Sep 30, 2024
32 checks passed
@T-Gro T-Gro deleted the 17796-internal-error-multiple-methods-appear-with-identical-argument-types branch September 30, 2024 08:30
esbenbjerre pushed a commit to esbenbjerre/fsharp that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

internal error: multiple methods appear with identical argument types
4 participants