Skip to content

Give an example of unmatched patterns in non-exhaustive switch warnings #43943

@alrz

Description

@alrz

F# does this and it could be quite useful for complex pattern switches

let f a b =
    match a, b with
    | 1, 2 -> ()

warning FS0025: Incomplete pattern matches on this expression. For example, the value '(_,0)' may indicate a case not covered by the pattern(s).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions