Debian Codegraph @

test-suite/modules/objects.v

raw
1 Module Type SET.
2 Axiom T : Set.
3 Axiom x : T.
4 End SET.
5
6 Set Implicit Arguments.
7 Unset Strict Implicit.
8
9 Module M (X: SET).
10 Definition T := nat.
11 Definition x := 0.
12 Definition f (A : Set) (x : A) := X.x.
13 End M.
14
15 Module N := M.
16
17 Module Nat.
18 Definition T := nat.
19 Definition x := 0.
20 End Nat.
21
22 Module Z := N Nat.
23
24 Check (Z.f 0).
25
26 Module P (Y: SET) := N.
27
28 Module Y := P Z Nat.
29
30 Check (Y.f 0).
31
32
33