test-suite/bugs/bug_1865.v
raw| 1 | (* Check that tactics (here dependent inversion) do not generate |
| 2 | conversion problems T <= U with sup's of universes in U *) |
| 3 | |
| 4 | (* Submitted by David Nowak *) |
| 5 | |
| 6 | Inductive list (A:Set) : nat -> Set := |
| 7 | | nil : list A O |
| 8 | | cons : forall n, A -> list A n -> list A (S n). |
| 9 | |
| 10 | Definition f (n:nat) : Type := |
| 11 | match n with |
| 12 | | O => bool |
| 13 | | _ => unit |
| 14 | end. |
| 15 | |
| 16 | Goal forall A n, list A n -> f n. |
| 17 | intros A n. |
| 18 | dependent inversion n. |
| 19 | Abort. |