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

Match does not understand matching on multiple values #108

Open
vzaliva opened this issue Sep 9, 2016 · 3 comments
Open

Match does not understand matching on multiple values #108

vzaliva opened this issue Sep 9, 2016 · 3 comments

Comments

@vzaliva
Copy link
Contributor

vzaliva commented Sep 9, 2016

To reproduce press C-A C-X RET and when prompted type nat, nat.
I expect it to generate match line this:

match _,_ with
 | O O => ...
 | S _, O => ...
 | O, S _ => ...
 | S _, S_ => ...
end.

I get the following error message instead:

company-coq-insert-match-construct: Toplevel input, characters 14-15:
> Show Match nat,nat.
>               ^
Syntax error: '.' expected after [vernac:command] (in [vernac_aux]).

@vzaliva vzaliva changed the title Match does not understand matching on multiple variables Match does not understand matching on multiple values Sep 9, 2016
@cpitclaudel
Copy link
Member

I think it's a Coq-side problem; can you open a Coq bug report?
The issue is that Coq's Show Match command doesn't support pairs.

@vzaliva
Copy link
Contributor Author

vzaliva commented Sep 9, 2016

I have filed a bug https://coq.inria.fr/bugs/show_bug.cgi?id=5076
I let it up to you to decide whenever to keep this ticket open until it is fixed in Coq or close for now.

@Matafou
Copy link
Contributor

Matafou commented Sep 14, 2016

This is not really a bug but a feature wish. The feature do support pairs, what is not supported is complex pattern matching (with notations). It is however a nice feature.

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

No branches or pull requests

3 participants