aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/5414.v
blob: 2522a274fb86046ffd3341776fc719a56d543f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(* Use of idents bound to ltac names in a "match" *)

Definition foo : Type.
Proof.
  let x := fresh "a" in
  refine (forall k : nat * nat, let '(x, _) := k in (_ : Type)).
  exact (a = a).
Defined.
Goal foo.
intros k. elim k. (* elim because elim keeps names *)
intros.
Check a. (* We check that the name is "a" *)