From b1656b1f10501b34ae6a7e147f550710b935e54b Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Wed, 22 Mar 2017 20:35:38 -0400 Subject: 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. --- test-suite/bugs/closed/5345.v | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test-suite/bugs/closed/5345.v (limited to 'test-suite/bugs/closed') 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. -- cgit v1.2.3