diff options
author | Tej Chajed <tchajed@mit.edu> | 2017-03-22 20:35:38 -0400 |
---|---|---|
committer | Tej Chajed <tchajed@mit.edu> | 2017-03-23 11:21:55 -0400 |
commit | b1656b1f10501b34ae6a7e147f550710b935e54b (patch) | |
tree | 0b7066295e87450d832f55a4b47674eb35454325 /test-suite/bugs/closed | |
parent | 6d2802075606dcddb02dd13cbaf38ff76f8bf242 (diff) |
Intern names bound in match patterns
Fixes Coq bug 5345 (https://coq.inria.fr/bugs/show_bug.cgi?id=5345):
Cannot use names bound in matches inside Ltac definitions.
Diffstat (limited to 'test-suite/bugs/closed')
-rw-r--r-- | test-suite/bugs/closed/5345.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5345.v b/test-suite/bugs/closed/5345.v new file mode 100644 index 000000000..d8448f35d --- /dev/null +++ b/test-suite/bugs/closed/5345.v @@ -0,0 +1,7 @@ +Ltac break_tuple := + match goal with + | [ H: context[match ?a with | pair n m => _ end] |- _ ] => + let n := fresh n in + let m := fresh m in + destruct a as [n m] + end. |