dotnet / dotnet/fsharp

Get more explicit help in choosing the right overload

Open
#11,534 9 comments 2 reactions 0 assignees View on GitHub
Area-Diagnostics Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

**Is your feature request related to a problem? Please describe.**
When a .NET library written in C# has several overloads, it is hard for the compiler to choose right, as seen in this response to an issue: https://github.com/dotnet/runtime/issues/45035#issuecomment-732467297

"It seems that F# treats `Action` as `Func`, but it still should be able to tell between two overloads. We will investigate this further."

**Describe the solution you'd like**
When both `Action`, treated as `Func`, and another `Func`, maybe have warnings or errors if types are not given explicitly.

**Describe alternatives you've considered**
It might be that the problem is the developer, overusing `|> ignore`, then we just have to live with it.

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.