close
Skip to content

Improve the error message when GADT parameter variance cannot be checked#13663

Merged
gasche merged 6 commits into
ocaml:trunkfrom
smuenzel:gadt-variance-check
Dec 9, 2024
Merged

Improve the error message when GADT parameter variance cannot be checked#13663
gasche merged 6 commits into
ocaml:trunkfrom
smuenzel:gadt-variance-check

Conversation

@smuenzel
Copy link
Copy Markdown
Contributor

@smuenzel smuenzel commented Dec 7, 2024

No description provided.

Copy link
Copy Markdown
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

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

I believe that this is correct and makes for a nice improvement to the error message.

Before we go ahead and merge, a quick look from @Octachron on at least the error message (and its use of ordinal numbers, etc.) would be nice, I wonder if he has opinions on how things should be done.

Comment thread typing/typedecl.ml Outdated
Comment thread typing/typedecl.ml Outdated
Comment thread typing/typedecl.ml Outdated
Comment thread typing/typedecl.ml Outdated
Comment thread testsuite/tests/typing-gadts/yallop_bugs.ml Outdated
@gasche gasche merged commit 91ced71 into ocaml:trunk Dec 9, 2024
@gasche
Copy link
Copy Markdown
Member

gasche commented Dec 9, 2024

All review comments have been addressed, merging! Thanks.

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