Debian Codegraph @

test-suite/success/abstract_with_evars.v

raw
1
2 Goal unit.
3 let x := open_constr:(_) in
4 let _ := open_constr:(eq_refl : x = tt) in
5 abstract (exact x).
6 Qed.
7
8 Goal unit.
9 let x := open_constr:(_) in
10 let tac := exact x in (* <- this is a closure *)
11 let _ := open_constr:(eq_refl : x = tt) in
12 abstract tac.
13 Qed.
14
15 Goal unit.
16 Fail let x := open_constr:(_) in
17 abstract exact x.
18 Abort.
19
20 Require Import Ltac2.Ltac2.
21
22 Goal unit.
23 let x := '_ in
24 let _ := '(eq_refl : $x = tt) in
25 abstract (exact $x).
26 Qed.
27
28 Goal unit.
29 let x := '_ in
30 let tac () := exact $x in
31 let _ := '(eq_refl : $x = tt) in
32 abstract (tac ()).
33 Qed.