Debian Codegraph @

test-suite/bugs/bug_3633.v

raw
1 Set Typeclasses Strict Resolution.
2 Class Contr (A : Type) := { center : A }.
3 Definition foo {A} `{Contr A} : A.
4 Proof.
5 apply center.
6 Undo.
7 (* Ensure the constraints are solved independently, otherwise a frozen ?A
8 makes a search for Contr ?A fail when finishing to apply (fun x => x) *)
9 apply (fun x => x), center.
10 Qed.