test-suite/output/TranspModtype.v
raw| 1 | Module Type SIG. |
| 2 | Axiom A : Set. |
| 3 | Axiom B : Set. |
| 4 | End SIG. |
| 5 | |
| 6 | Module M : SIG. |
| 7 | Definition A := nat. |
| 8 | Definition B := nat. |
| 9 | End M. |
| 10 | |
| 11 | Module N <: SIG := M. |
| 12 | |
| 13 | Module TranspId (X: SIG) <: SIG with Definition A := X.A := X. |
| 14 | Module OpaqueId (X: SIG) : SIG with Definition A := X.A := X. |
| 15 | |
| 16 | Module TrM := TranspId M. |
| 17 | Module OpM := OpaqueId M. |
| 18 | |
| 19 | Print TrM.A. |
| 20 | Print OpM.A. |
| 21 | Print TrM.B. |
| 22 | Print OpM.B. |