Skip to content

convert more warnings in OCaml syntax to ReScript syntax #5468

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

Merged
merged 4 commits into from
Jun 25, 2022

Conversation

zth
Copy link
Collaborator

@zth zth commented Jun 25, 2022

This changes more pattern matching related warnings/errors from OCam to ReScript syntax:

  • Non closed record pattern warning ("please add ", _" to your pattern)
  • Record syntax
  • Variants with payloads
  • Arrays

19 │ let arr = [1]

You forgot to handle a possible case here, for example:
({typ: WithPayload(false)}|{typ: Variant})
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks a little dense.
Aslo, parens probl non needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cristianoc check the latest commit, what do you think?

@cristianoc
Copy link
Collaborator

Looking great. Merge away when you're happy with it.

@zth zth merged commit 6d81258 into master Jun 25, 2022
@zth zth deleted the convert-more-error-messages-from-ml-to-res branch June 25, 2022 19:32
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.

2 participants