Skip to content

Extend RemoveSuperflousCaptureForUnionCaseWithNoDataProvider to cover literal patterns #15914

@edgarfgp

Description

@edgarfgp

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

type E =
     | A = 1
     | B = 2

 let (E.A x) = E.A

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

let [<Literal>] A = 1

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

Originally posted by @edgarfgp in #14267 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions