diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2012-03-31 12:15:13 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2012-03-31 12:15:13 +0000 |
commit | 60ab0ff70e00b16ba0948f992ad9c907720c6e2a (patch) | |
tree | 3fb86f9081d4b9815fec098479d79d089fbabc18 | |
parent | 34578cf242395aa46906b905b29f7443432fae8e (diff) | |
download | ocaml-60ab0ff70e00b16ba0948f992ad9c907720c6e2a.tar.gz |
problem with applicative functors
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/short-paths@12297 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | testsuite/tests/typing-misc/short-paths.ml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/tests/typing-misc/short-paths.ml b/testsuite/tests/typing-misc/short-paths.ml new file mode 100644 index 0000000000..aa7e02d2f1 --- /dev/null +++ b/testsuite/tests/typing-misc/short-paths.ml @@ -0,0 +1,21 @@ +module Core = struct + module Int = struct + module T = struct + type t = int + let compare = compare + let (+) x y = x + y + end + include T + module Map = Map.Make(T) + end + + module Std = struct + module Int = Int + end +end + +open Core.Std + + +let x = Int.Map.empty +let y = x + x |