Debian Codegraph @

test-suite/success/resolve_tc.v

raw
1 Class C := c {}.
2 Local Existing Instance c.
3
4 Require Ltac2.Ltac2.
5
6 Ltac resolve_tc := ltac2:(x |- Std.resolve_tc (Option.get (Ltac1.to_constr x))).
7
8 (* check that exact doesn't do the resolution *)
9 Lemma bad : C.
10 Proof.
11 let x := open_constr:(_:C) in exact x.
12 Fail Qed.
13 Unshelve.
14 exact _.
15 Qed.
16
17 Lemma foo : C.
18 Proof.
19 let x := open_constr:(_:C) in resolve_tc x; exact x.
20 Qed.
21
22 (* resolve_tc doesn't focus *)
23 Lemma bar : C.
24 Proof.
25 let x := open_constr:(_:C) in exact x; resolve_tc x.
26 Qed.