Debian Codegraph @

test-suite/bugs/bug_5414.v

raw
1 (* Use of idents bound to ltac names in a "match" *)
2
3 Definition foo : Type.
4 Proof.
5 let x := fresh "a" in
6 refine (forall k : nat * nat, let '(x, _) := k in (_ : Type)).
7 exact (a = a).
8 Defined.
9 Goal foo.
10 intros k. elim k. (* elim because elim keeps names *)
11 intros.
12 Check a. (* We check that the name is "a" *)
13 Abort.