summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-modules/b.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typing-modules/b.ml')
-rw-r--r--testsuite/tests/typing-modules/b.ml18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/typing-modules/b.ml b/testsuite/tests/typing-modules/b.ml
new file mode 100644
index 0000000000..4c43e809fd
--- /dev/null
+++ b/testsuite/tests/typing-modules/b.ml
@@ -0,0 +1,18 @@
+open A
+let f =
+ L.map S.capitalize
+
+let () =
+ L.iter print_endline (f ["jacques"; "garrigue"])
+
+module C : sig module L : module type of List end = struct include A end
+
+(* The following introduces a (useless) dependency on A:
+module C : sig module L : module type of List end = A
+*)
+
+include D'
+(*
+let () =
+ print_endline (string_of_int D'.M.y)
+*)