summaryrefslogtreecommitdiff
path: root/test-suite/bugs/opened/3948.v
blob: 165813084d7295ce267b49ef63d7c27f4e613f2f (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
Module Type S.
Parameter t : Type.
End S.

Module Bar(X : S).
Proof.
  Definition elt := X.t.
  Axiom fold : elt.
End Bar.

Module Make (X: S) := Bar(X).

Declare Module X : S.

Module Type Interface.
  Parameter constant : unit.
End Interface.

Module DepMap : Interface.
  Module Dom := Make(X).
  Definition constant : unit :=
    let _ := @Dom.fold in tt.
End DepMap.

Print Assumptions DepMap.constant.