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

Forbid old operator in precondition clauses (requires and checks) #335

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

n-osborne
Copy link
Contributor

  • Route whereami information in type checker
  • Reject old in requires and checks clauses

Route throughout `dterm` type checker information about which type of
clause the term appears in.

Co-authored-by: Samuel Hym <samuel.hym@rustyne.lautre.net>
Co-authored-by: Samuel Hym <samuel.hym@rustyne.lautre.net>
Copy link
Contributor

@shym shym left a comment

Choose a reason for hiding this comment

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

I’ve added quotes to the kind of clause in the error message.
This is good to go in if CI agrees.

@n-osborne
Copy link
Contributor Author

CI is happy. I merge.

@n-osborne n-osborne merged commit ef8f0d2 into ocaml-gospel:main Sep 19, 2023
3 checks passed
@n-osborne n-osborne deleted the no-clause-for-old branch September 19, 2023 07:15
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