summaryrefslogtreecommitdiff
path: root/testsuite/tests/typing-modules-bugs/pr7112_bad.ml
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue@math.nagoya-u.ac.jp>2016-03-16 18:23:46 +0100
committerJacques Garrigue <garrigue@math.nagoya-u.ac.jp>2016-03-16 18:23:46 +0100
commit2913cf11b0321e22e529d620c8eae7e854d379dd (patch)
tree763782db4c743a4e8c5e4a5b18eb1573f1271801 /testsuite/tests/typing-modules-bugs/pr7112_bad.ml
parentba82f8f072e80500e2a83482757825e7c0e4cf48 (diff)
downloadocaml-2913cf11b0321e22e529d620c8eae7e854d379dd.tar.gz
Fix PR#7112
Diffstat (limited to 'testsuite/tests/typing-modules-bugs/pr7112_bad.ml')
-rw-r--r--testsuite/tests/typing-modules-bugs/pr7112_bad.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/typing-modules-bugs/pr7112_bad.ml b/testsuite/tests/typing-modules-bugs/pr7112_bad.ml
new file mode 100644
index 0000000000..9f4a12d2f0
--- /dev/null
+++ b/testsuite/tests/typing-modules-bugs/pr7112_bad.ml
@@ -0,0 +1,5 @@
+module A = struct module type S module S = struct end end
+module F (_ : sig end) = struct module type S module S = A.S end
+module M = struct end
+module N = M
+module G (X : F(N).S) : A.S = X