dotnet / dotnet/fsharp

Wrong "Parameter name doesn't match signature" warning

Open
#14,018 0 comments 0 reactions 1 assignee Claimed by @edgarfgp View on GitHub
Area-Diagnostics Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Consider these signature and implementation files:
```fsharp
module Module

val g: c: (int * int) -> unit
```
```fsharp
module Module

let g (a, b) = a + b |> ignore
```

The warning is reported for one of the implementation parameters instead of the whole tuple:

Screenshot 2022-10-03 at 15 42 06

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.