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