Debian Codegraph @

test-suite/bugs/bug_7904.v

raw
1
2
3 Class abstract_term {T} (x : T) := by_abstract_term : T.
4 #[export] Hint Extern 0 (@abstract_term ?T ?x) => change T; abstract (exact x) : typeclass_instances.
5
6 Goal True.
7 let term := constr:(I) in
8 let T := type of term in
9 let x := constr:((_ : abstract_term term) : T) in
10 let x := match constr:(x) with ?y => y end in
11 pose x as v. (* was Error: Variable x should be bound to a term but is bound to a constr. *)
12 exact v.
13 Qed.