Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Spurious warning about identical branches of a pattern matching #26

Description

@vprevosto

In the following example (reduced from a more complex pattern matching)

let f l = match l with  _::l -> l | _ -> l

ocamllint warns about the two branches of the pattern matching being identical, while the two l identifiers do not refer to the same thing at all and should not really be considered equal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions