Debian Codegraph @

test-suite/bugs/bug_5177.v

raw
1 (* Bug 5177 https://coq.inria.fr/bug/5177 :
2 Extraction and module type containing application and "with" *)
3
4 Module Type T.
5 Parameter t: Type.
6 End T.
7
8 Module Type A (MT: T).
9 Parameter t1: Type.
10 Parameter t2: Type.
11 Parameter bar: MT.t -> t1 -> t2.
12 End A.
13
14 Module MakeA(MT: T): A MT with Definition t1 := nat.
15 Definition t1 := nat.
16 Definition t2 := nat.
17 Definition bar (m: MT.t) (x:t1) := x.
18 End MakeA.
19
20 Require Extraction.
21 Recursive Extraction MakeA.
22 Extraction TestCompile MakeA.