Debian Codegraph @

test-suite/output/PrintModule.v

raw
1 (* Bug #2169 *)
2
3 Module FOO.
4
5 Module M.
6 Definition T := nat.
7 End M.
8
9 Module Type S.
10 Parameter T : Set.
11 End S.
12
13 Module N : S with Definition T := nat := M.
14
15 Print Module N.
16
17 Set Short Module Printing.
18 Print Module N.
19 Unset Short Module Printing.
20
21 End FOO.
22
23 Module BAR.
24
25 Module K. End K.
26 Module Type KS. End KS.
27
28 Module M.
29 Module T := K.
30 End M.
31
32 Module Type S.
33 Declare Module T : KS.
34 End S.
35
36 Module N : S with Module T := K := M.
37
38 Print Module N.
39
40 Set Short Module Printing.
41 Print Module N.
42 Unset Short Module Printing.
43
44 End BAR.
45
46 (* Bug #4661 *)
47
48 Module QUX.
49
50 Module Type Test.
51 Parameter t : Type.
52 End Test.
53
54 Module Type Func (T:Test).
55 Parameter x : T.t.
56 End Func.
57
58 Module Shortest_path (T : Test).
59 Print Func.
60 End Shortest_path.
61
62 End QUX.
63
64 Module A.
65 Variant I := C : nat -> I.
66 Record R := { n : nat }.
67 End A.
68
69 Print Module A.