Skip to content

Quick fix for removing _ when using a union case with not data #428

@edgarfgp

Description

@edgarfgp

I recently fixed dotnet/fsharp#13851

type X = X

 let x: X = X

 let myVal =
     match x with
     | X _ -> ()

let myFunc(X x) = 5+5
 let myDiscardedArgFunc(X _)

This will not longer be valid and a new warning error will be reported : Pattern discard is not allowed for union case that takes no data.

Will Rider be affected by this change ?

Update : Im Rider user and I would love to contribute with some guidance to how to add a quick fix :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions