dotnet / dotnet/fsharp

Wrong symbol use is reported for custom operation overloads by `GetAllUsesOfAllSymbolsInFile`

Open
#15,206 2 comments 0 reactions 0 assignees View on GitHub
Area-Compiler-Service Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

An extraction of an issue from https://github.com/dotnet/fsharp/issues/11612#issuecomment-955456986.

When there're multiple overloads of a custom operation, a wrong overload item is reported to the sink.
```fsharp
type FooBuilder() =
member _.Yield _ = 1

[]
member _.Create(i1: int, s: string, i2: int) = 1

[]
member _.Create(i: int, s1: string, s2: string) = 1

FooBuilder() {
create "" 1
create "" ""
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.