test-suite/bugs/bug_4588.v
raw| 1 | Set Primitive Projections. |
| 2 | |
| 3 | (* This proof was accepted in Coq 8.5 because the subterm specs were not |
| 4 | projected correctly *) |
| 5 | Inductive foo : Prop := mkfoo { proj1 : False -> foo; proj2 : (forall P : Prop, P -> P) }. |
| 6 | |
| 7 | Fail Fixpoint loop (x : foo) : False := |
| 8 | loop (proj2 x _ x). |
| 9 | |
| 10 | Fail Definition bad : False := loop (mkfoo (fun x => match x with end) (fun _ x => x)). |