Extend RemoveSuperflousCaptureForUnionCaseWithNoDataProvider to cover literal patterns
Open
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
Assessment
This issue has not been assessed yet.