Skip to content

Incorrect error when pattern type doesn't match expression type #53

Description

@siddharth-krishna
match (1.2, 3.0, 3.0) with {
  | (x, y, z) -> 3
  | (x, y, (_, _)) -> 2
  | _ -> 9
}
image

The error should be on line 3 and should say something like ... but instead found (double, double, ('a, 'b)).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions