test-suite/bugs/bug_20894.v
raw| 1 | Require Corelib.extraction.Extraction. |
| 2 | |
| 3 | Module Type S. |
| 4 | Parameter t : Type. |
| 5 | Parameter fold : t. |
| 6 | End S. |
| 7 | |
| 8 | Module M : S. |
| 9 | Definition t := list unit -> unit. |
| 10 | Fixpoint fold (l : list unit) : unit := |
| 11 | match l with |
| 12 | | nil => tt |
| 13 | | cons b l => |
| 14 | match b with |
| 15 | | tt => fold l |
| 16 | end |
| 17 | end. |
| 18 | End M. |
| 19 | |
| 20 | Axiom bug : M.t. |
| 21 | |
| 22 | Extraction bug. |