test-suite/bugs/bug_8364.v
raw| 1 | Unset Primitive Projections. |
| 2 | |
| 3 | Record Box (A:Type) := box { unbox : A }. |
| 4 | Arguments box {_} _. Arguments unbox {_} _. |
| 5 | |
| 6 | Definition map {A B} (f:A -> B) x := |
| 7 | match x with box x => box (f x) end. |
| 8 | |
| 9 | Definition tuple (l : Box Type) : Type := |
| 10 | match l with |
| 11 | | box x => x |
| 12 | end. |
| 13 | |
| 14 | Fail Inductive stack : Type -> Type := |
| 15 | | Stack T foos : |
| 16 | tuple (map stack foos) -> |
| 17 | stack T. |