Debian Codegraph @

test-suite/success/applyTC.v

raw
1 Axiom P : nat -> Prop.
2
3 Class class (A : Type) := { val : A }.
4
5 Lemma usetc {t : class nat} : P (@val nat t).
6 Admitted.
7
8 Notation "{val:= v }" := (@val _ v).
9
10 #[export] Instance zero : class nat := {| val := 0 |}.
11
12 Lemma test : P 0.
13 Fail apply usetc.
14 pose (tmp := usetc); apply tmp; clear tmp.
15 Qed.