test-suite/bugs/bug_2817.v
raw| 1 | (** Occur-check for Meta (up to application of already known instances) *) |
| 2 | |
| 3 | Goal forall (f: nat -> nat -> Prop) (x:bool) |
| 4 | (H: forall (u: nat), f u u -> True) |
| 5 | (H0: forall x0, f (if x then x0 else x0) x0), |
| 6 | False. |
| 7 | |
| 8 | intros. |
| 9 | Fail apply H in H0. (* should fail without exhausting the stack *) |
| 10 | Abort. |