summaryrefslogtreecommitdiff
path: root/test-suite/modules/mod_decl.v
blob: 867b8a11fb980711855feb31e40cf6671c1f7f12 (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
Module Type SIG.
  Definition A:Set. (*error*)
  Axiom A:Set.
End SIG.

Module M0.
  Definition A:Set.
  Exact nat.
  Save.
End M0.

Module M1:SIG.
  Definition A:=nat.
End M1.

Module M2<:SIG.
  Definition A:=nat.
End M2.

Module M3:=M0.

Module M4:SIG:=M0.

Module M5<:SIG:=M0.


Module F[X:SIG]:=X.


Declare Module M6.


Module Type T.

  Declare Module M0.
    Lemma A:Set (*error*).
    Axiom A:Set.
  End M0.
  
  Declare Module M1:SIG.
  
  Declare Module M2<:SIG.
    Definition A:=nat.
  End M2.
  
  Declare Module M3:=M0.
  
  Declare Module M4:SIG:=M0.  (* error *)
  
  Declare Module M5<:SIG:=M0.

  Declare Module M6:=F M0. (* error *)

  Module M7.
End T.