test-suite/ltac2/lconstr.v
raw| 1 | Require Import Ltac2.Ltac2. |
| 2 | |
| 3 | Ltac2 Notation "Assume" _(lconstr) := constructor. |
| 4 | |
| 5 | Goal forall n : nat, True. |
| 6 | Proof. |
| 7 | intros n. |
| 8 | Assume n < 10. |
| 9 | Abort. |
| 10 | |
| 11 | Ltac2 Notation "Assume_open" _(open_lconstr) := constructor. |
| 12 | |
| 13 | Goal forall n : nat, True. |
| 14 | Proof. |
| 15 | intros n. |
| 16 | Assume_open n < 10. |
| 17 | Abort. |