caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] First Class modules -A bug in 4.00?
@ 2012-06-08  2:35 Hongbo Zhang
  2012-06-08  3:22 ` Jacques Garrigue
  0 siblings, 1 reply; 6+ messages in thread
From: Hongbo Zhang @ 2012-06-08  2:35 UTC (permalink / raw)
  To: Caml List

Hi, List
    I am not sure this is a bug or not?

    Below is a contrived example:
------------------
    module type S = sig
      type t=int
      module  X : sig type u   end
    end

    let f ( module X : S)  (y:X.X.u) =
    3
--------------------
Error: This pattern matches values of type X.X.u
        but a pattern was expected which matches values of type X.X.u
        The type constructor X.X.u would escape its scope

-- Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-10  9:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08  2:35 [Caml-list] First Class modules -A bug in 4.00? Hongbo Zhang
2012-06-08  3:22 ` Jacques Garrigue
2012-06-08 15:25   ` bob zhang
2012-06-08 15:29     ` bob zhang
2012-06-08 20:25   ` Milan Stanojević
2012-06-10  9:27     ` Jacques Garrigue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).