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

Fixes #11237: support constructor with parameters in primitive notations for patterns #17902

Conversation

herbelin
Copy link
Member

This is fixed by forcing the parameters of the constructors to be _ when coming from a notation.

We also provide support for a notation at the head of an "in" clause of "match".

Fixes / closes #11237

  • Added / updated test-suite.
  • Added changelog.

@herbelin herbelin added kind: fix This fixes a bug or incorrect documentation. part: notations The notation system. request: full CI Use this label when you want your next push to trigger a full CI. labels Jul 28, 2023
@herbelin herbelin added this to the 8.18.0 milestone Jul 28, 2023
@herbelin herbelin requested review from a team as code owners July 28, 2023 13:31
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Jul 28, 2023
dev/ci/ci-vst.sh Outdated Show resolved Hide resolved
… patterns.

Additionally, we restructurate the code a bit, moving the check on
well-formedness of patterns in constrintern.ml so that the separation
of roles between check_allowed_ref_in_pat (just check the validity so
that another interpretation can be taken if it fails) and rcp_of_pat
(which interpret the pattern) is clearer.

We also check that the "in" clause of "match" accepts a notation for
inductive type at the head.
@herbelin herbelin force-pushed the master+fix11237-constructor-parameters-in-prim-notation-for-pattern branch from 60d0f6b to ac165b4 Compare July 31, 2023 07:50
@coqbot-app coqbot-app bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jul 31, 2023
@herbelin
Copy link
Member Author

@coqbot run full ci

@coqbot-app coqbot-app bot removed the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jul 31, 2023
@proux01 proux01 self-assigned this Aug 3, 2023
@proux01
Copy link
Contributor

proux01 commented Aug 3, 2023

@coqbot merge now

@coqbot-app coqbot-app bot merged commit f0e0ee9 into coq:master Aug 3, 2023
7 checks passed
@Zimmi48 Zimmi48 added this to Request 8.18.0 inclusion in Coq 8.18 Aug 13, 2023
@gares gares modified the milestones: 8.18.0, 8.19+rc1 Aug 31, 2023
@Zimmi48 Zimmi48 removed this from Request 8.18.0 inclusion in Coq 8.18 Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: fix This fixes a bug or incorrect documentation. part: notations The notation system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String notation and pattern matching: “No interpretation for string [...]”
4 participants