aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/3978.v
blob: 26e021e7191d54ffbf6d34cfe590045f8d15f019 (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
Require Import Structures.OrderedType.  
Require Import Structures.OrderedTypeEx.

Module Type M. Parameter X : Type.      

Declare Module Export XOrd : OrderedType
  with Definition t := X
  with Definition eq := @Logic.eq X.
End M.

Module M' : M.
  Definition X := nat.

  Module XOrd := Nat_as_OT.
End M'.

Module Type MyOt.
  Parameter t : Type.
  Parameter eq : t -> t -> Prop.
End MyOt.

Module Type M2. Parameter X : Type.      

Declare Module Export XOrd : MyOt
  with Definition t := X
  with Definition eq := @Logic.eq X.
End M2.