Debian Codegraph @

test-suite/bugs/bug_7195.v

raw
1 (* A disjoint-names condition was missing when matching names in Ltac
2 pattern-matching *)
3
4 Goal True.
5 let x := (eval cbv beta zeta in (fun P => let Q := P in fun P => P + Q)) in
6 unify x (fun a b => b + a); (* success *)
7 let x' := lazymatch x with
8 | (fun (a : ?A) (b : ?B) => ?k)
9 => constr:(fun (a : A) (b : B) => k)
10 end in
11 unify x x'.
12 Abort.