summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2011-12-12 05:49:13 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2011-12-12 05:49:13 +0000
commit8427522b52f0ec75ba0175bd25fef02eb455d25c (patch)
tree6fe73ca51eef3a611cd7b7242b7f06154ca49d21
parent6306860e1f4dc2e4932dd79f3e662f49025a01e2 (diff)
Add counter-example for PR#5343
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11298 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--testsuite/tests/typing-modules-bugs/pr5343_bad.ml13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typing-modules-bugs/pr5343_bad.ml b/testsuite/tests/typing-modules-bugs/pr5343_bad.ml
new file mode 100644
index 000000000..0484c677c
--- /dev/null
+++ b/testsuite/tests/typing-modules-bugs/pr5343_bad.ml
@@ -0,0 +1,13 @@
+module M : sig
+ type 'a t
+ type u = u t and v = v t
+ val f : int -> u
+ val g : v -> bool
+end = struct
+ type 'a t = 'a
+ type u = int and v = bool
+ let f x = x
+ let g x = x
+end;;
+
+let h (x : int) : bool = M.g (M.f x);;