test-suite/bugs/bug_6956.v
raw| 1 | (** Used to trigger an anomaly with VM compilation *) |
| 2 | |
| 3 | Set Universe Polymorphism. |
| 4 | |
| 5 | Inductive t A : nat -> Type := |
| 6 | | nil : t A 0 |
| 7 | | cons : forall (h : A) (n : nat), t A n -> t A (S n). |
| 8 | |
| 9 | Definition case0 {A} (P : t A 0 -> Type) (H : P (nil A)) v : P v := |
| 10 | match v with |
| 11 | | nil _ => H |
| 12 | | _ => fun devil => False_ind (@IDProp) devil |
| 13 | end. |