diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-05-23 21:38:08 +0200 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2018-05-23 21:41:43 +0200 |
commit | 98814890466b2ee4b72235a2591ecd150bff08e7 (patch) | |
tree | 60d86d2d8c79153aa4e1dcabb5da180cabc87315 /test-suite | |
parent | b74d9500e5943317f1baf4f36b3d979d40f6105f (diff) |
Fix #7586: Anomaly "Uncaught exception Not_found".
The old unification engine was using the unfiltered environment when a
context had been cleared, leading to an ill-typed goal.
Diffstat (limited to 'test-suite')
-rw-r--r-- | test-suite/bugs/closed/7392.v | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/7392.v b/test-suite/bugs/closed/7392.v new file mode 100644 index 000000000..cf465c658 --- /dev/null +++ b/test-suite/bugs/closed/7392.v @@ -0,0 +1,9 @@ +Inductive R : nat -> Prop := ER : forall n, R n -> R (S n). + +Goal (forall (n : nat), R n -> False) -> True -> False. +Proof. +intros H0 H1. +eapply H0. +clear H1. +apply ER. +simpl. |