| 1 |
|
| 2 |
(* When doing Module Foo with Definition bar := ..., bar must be |
| 3 |
generated with the same polymorphism as Foo.bar. *) |
| 4 |
Module Mono. |
| 5 |
Unset Universe Polymorphism. |
| 6 |
Module Type T. |
| 7 |
Parameter foo : Type. |
| 8 |
End T. |
| 9 |
|
| 10 |
Module Type F(A:T). End F. |
| 11 |
|
| 12 |
Set Universe Polymorphism. |
| 13 |
Module M : T with Definition foo := Type. |
| 14 |
Monomorphic Definition foo := Type. |
| 15 |
End M. |
| 16 |
End Mono. |
| 17 |
|
| 18 |
Module Poly. |
| 19 |
Set Universe Polymorphism. |
| 20 |
|
| 21 |
Module Type T. |
| 22 |
Parameter foo@{i|Set < i} : Type@{i}. |
| 23 |
End T. |
| 24 |
|
| 25 |
Module Type F(A:T). End F. |
| 26 |
|
| 27 |
Unset Universe Polymorphism. |
| 28 |
Module M : T with Definition foo := Set : Type. |
| 29 |
Polymorphic Definition foo := Set : Type. |
| 30 |
End M. |
| 31 |
End Poly. |