dotnet / dotnet/fsharp

Extend RemoveSuperflousCaptureForUnionCaseWithNoDataProvider to cover literal patterns

Open
#15,914 0 comments 0 reactions 0 assignees View on GitHub
Area-LangService-CodeFixes good first issue
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

I notice that we can also use the same quick fix for ``FS3191: This literal pattern does not take arguments``

```fsharp
type E =
| A = 1
| B = 2

let (E.A x) = E.A

match E.A with
| E.A x -> ()

let [] A = 1

match 1 with
| (A x) -> ()
```

_Originally posted by @edgarfgp in https://github.com/dotnet/fsharp/issues/14267#issuecomment-1324764391_

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.