Skip to content

Ppx: refuse match cases with only exception cases#597

Merged
aantron merged 2 commits into
ocsigen:masterfrom
raphael-proust:master
Jun 12, 2018
Merged

Ppx: refuse match cases with only exception cases#597
aantron merged 2 commits into
ocsigen:masterfrom
raphael-proust:master

Conversation

@raphael-proust
Copy link
Copy Markdown
Collaborator

Fixes #596

I guess this technically counts as a breaking change just in case someone was using the behaviour (even though it was incompatible with ocaml's).

Copy link
Copy Markdown
Member

@Drup Drup left a comment

Choose a reason for hiding this comment

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

Thanks! Code looks good.

@aantron The testing of this is annoying, as the error output changed after 4.03. Do you have a proposition?

@aantron
Copy link
Copy Markdown
Collaborator

aantron commented Jun 9, 2018

Thanks @raphael-proust! I think we can skip the full breaking-change treatment for this PR :)

For testing, we could add the ability to skip expect tests conditionally to the expect test framework. I'll push something into this PR tomorrow.

@aantron
Copy link
Copy Markdown
Collaborator

aantron commented Jun 9, 2018

Looking at the output, it may also be good enough to remove "Error: " prefixes from lines.

@aantron aantron merged commit 14ddd82 into ocsigen:master Jun 12, 2018
@aantron
Copy link
Copy Markdown
Collaborator

aantron commented Jun 12, 2018

Thanks @raphael-proust, and @cyberhuman for finding and reporting the issue. For the expect tests, I decided to restrict them to OCaml >= 4.04. We were already restricted to >= 4.03 before that.

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.

3 participants