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
Issue a warning when a notation declares different levels for the same term #17985
Milestone
Comments
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 29, 2023
In practice, it is enough to simplify the code for setting levels thanks to the pre-parsing of the main entry in 359cac9. Also, we reset the syntax modifiers in the natural order after having parsed the non-syntax modifiers.
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 29, 2023
In practice, it is enough to simplify the code for setting levels thanks to the pre-parsing of the main entry in 359cac9. Also, we reset the syntax modifiers in the natural order after having parsed the non-syntax modifiers.
2 tasks
Good point. I tried to raise an error in PR #17988. If it fails too often, we can still make a warning. |
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 29, 2023
In practice, it is enough to simplify the code for setting levels thanks to the pre-parsing of the main entry in 359cac9. Also, we reset the syntax modifiers in the natural order after having parsed the non-syntax modifiers.
coqbot-app bot
added a commit
that referenced
this issue
Aug 30, 2023
…le levels Reviewed-by: ppedrot Co-authored-by: ppedrot <ppedrot@users.noreply.github.com>
Villetaneuse
pushed a commit
to Villetaneuse/coq
that referenced
this issue
Sep 9, 2023
In practice, it is enough to simplify the code for setting levels thanks to the pre-parsing of the main entry in 359cac9. Also, we reset the syntax modifiers in the natural order after having parsed the non-syntax modifiers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
I accidentally wrote something like that:
(The actual notation was a lot bigger.)
It took me a while to realize that I have
B
at two different levels; Coq seems to then prefer the first level given. Ideally it should warn (or error) though and tell the user that they are declaring different levels for the same term.Coq Version
8.17.0
The text was updated successfully, but these errors were encountered: