aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/opened/3948.v
blob: 5c4b4277b2ffce25d2531a0ab36936e5d4a6de62 (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.