Skip to content

Missing warning for unreachable arm in the presence of an intermediate when clause #14573

@alrz

Description

@alrz

Please provide a succinct description of the issue.

Repro steps

let f value b = match value  with
                | (true, true) -> -1
                | _ when b -> 2
                | (true, false) -> 3
                | (true, _) -> 4 // expected warning

Expected behavior

warning FS0026: This rule will never be matched for the last arm

Actual behavior

No warning about unreachable arm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions