Skip to content

Pattern discard allowed for union case that takes no data #13851

@NinoFloris

Description

@NinoFloris

Match discards aren't type checked against case

    type X = X 

    let test() =
        match X with
        | X _ -> () // No error X doesn't have arguments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions