test-suite/bugs/bug_4251.v
raw| 1 | |
| 2 | Inductive array : Type -> Type := |
| 3 | | carray : forall A, array A. |
| 4 | |
| 5 | Inductive Mtac : Type -> Prop := |
| 6 | | bind : forall {A B}, Mtac A -> (A -> Mtac B) -> Mtac B |
| 7 | | array_make : forall {A}, A -> Mtac (array A). |
| 8 | |
| 9 | Definition Ref := array. |
| 10 | |
| 11 | Definition ref : forall {A}, A -> Mtac (Ref A) := |
| 12 | fun A x=> array_make x. |
| 13 | Check array Type. |
| 14 | Check fun A : Type => Ref A. |
| 15 | |
| 16 | Definition abs_val (a : Type) := |
| 17 | bind (ref a) (fun r : array Type => array_make tt). |