caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hongbo Zhang <bobzhang1988@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: [Caml-list] First Class modules -A bug in 4.00?
Date: Thu, 07 Jun 2012 22:35:14 -0400	[thread overview]
Message-ID: <4FD164E2.4050807@gmail.com> (raw)

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

             reply	other threads:[~2012-06-08  2:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08  2:35 Hongbo Zhang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FD164E2.4050807@gmail.com \
    --to=bobzhang1988@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).