diff options
author | Jacques Garrigue <garrigue@math.nagoya-u.ac.jp> | 2017-08-02 14:50:18 +0900 |
---|---|---|
committer | Jacques Garrigue <garrigue@math.nagoya-u.ac.jp> | 2017-08-02 14:50:18 +0900 |
commit | 24751308194c4c28507899ddf5d9d07cad17cedc (patch) | |
tree | 1bd15cb92d812f1de5c768964d711049660ee9be | |
parent | 7d171d1e4a656f1ec06d639a12efd30a986a2605 (diff) | |
download | ocaml-24751308194c4c28507899ddf5d9d07cad17cedc.tar.gz |
add test
-rw-r--r-- | testsuite/tests/typing-modules-bugs/pr7519_ok.ml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/typing-modules-bugs/pr7519_ok.ml b/testsuite/tests/typing-modules-bugs/pr7519_ok.ml new file mode 100644 index 0000000000..b01da15055 --- /dev/null +++ b/testsuite/tests/typing-modules-bugs/pr7519_ok.ml @@ -0,0 +1,18 @@ +module Gen_spec = struct type 't extra = unit end + +module type S = sig + module Spec : sig type 't extra = unit end + + type t + val make : unit -> t Spec.extra +end (* S *) + +module Make () : S with module Spec := Gen_spec = struct + type t = int + let make () = () +end (* Make *) + +let () = + let module M = Make () in + M.make () + (* (M.make () : unit) *) |