test-suite/modules/obj.v
raw| 1 | Set Implicit Arguments. |
| 2 | Unset Strict Implicit. |
| 3 | |
| 4 | Module M. |
| 5 | Definition a (s : Set) := s. |
| 6 | Print a. |
| 7 | End M. |
| 8 | |
| 9 | Print M.a. |
| 10 | |
| 11 | Module K. |
| 12 | Definition app (A B : Set) (f : A -> B) (x : A) := f x. |
| 13 | Module N. |
| 14 | Definition apap (A B : Set) := app (app (A:=A) (B:=B)). |
| 15 | Print app. |
| 16 | Print apap. |
| 17 | End N. |
| 18 | Print N.apap. |
| 19 | End K. |
| 20 | |
| 21 | Print K.app. |
| 22 | Print K.N.apap. |
| 23 | |
| 24 | Module W := K.N. |
| 25 | |
| 26 | Print W.apap. |