test-suite/ltac2/evar.v
raw| 1 | Require Import Ltac2.Ltac2. |
| 2 | |
| 3 | Goal exists (a: nat), a = 1. |
| 4 | Proof. |
| 5 | match! goal with |
| 6 | | [ |- ?g ] => Control.assert_false (Constr.has_evar g) |
| 7 | end. |
| 8 | eexists. |
| 9 | match! goal with |
| 10 | | [ |- ?g ] => Control.assert_true (Constr.has_evar g) |
| 11 | end. |
| 12 | match! goal with |
| 13 | | [ |- ?x = ?y ] => |
| 14 | Control.assert_true (Constr.is_evar x); |
| 15 | Control.assert_false (Constr.is_evar y) |
| 16 | end. |
| 17 | Abort. |