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

PatternBadtype: fix order in error message #172

Merged
merged 2 commits into from
Mar 30, 2022

Conversation

paulpatault
Copy link
Contributor

No description provided.

@paulpatault
Copy link
Contributor Author

I had Error: This pattern has type int but is expected to have type string on

type t = { n : int }

(*@ function f (x: t): unit =
    match x with
    | { n="x" } -> () *)

I think the opposite was expected.

Copy link
Contributor

@pascutto pascutto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem right indeed, thanks!

@pascutto pascutto merged commit a2d0664 into ocaml-gospel:main Mar 30, 2022
@paulpatault paulpatault deleted the badtype-pattern branch March 30, 2022 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants