Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
siddharth-krishna opened this issue Jul 11, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@siddharth-krishna
Copy link
Collaborator

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)).

@siddharth-krishna siddharth-krishna added the bug Something isn't working label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant