diff options
Diffstat (limited to 'test-suite/success')
| -rw-r--r-- | test-suite/success/ltac.v | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/success/ltac.v b/test-suite/success/ltac.v index 3f25f70354..05a6a70f39 100644 --- a/test-suite/success/ltac.v +++ b/test-suite/success/ltac.v @@ -175,3 +175,16 @@ Abort. Goal True. match None with @None => exact I end. Abort. + +(* Check second-order pattern unification *) + +Ltac to_exist := + match goal with + |- forall x y, @?P x y => + let Q := eval lazy beta in (exists x, forall y, P x y) in + assert (Q->Q) + end. + +Goal forall x y : nat, x = y. +to_exist. exact (fun H => H). +Abort. |
