caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Philippe Veber <philippe.veber@googlemail.com>
To: caml-list@yquem.inria.fr
Subject: Typing of polymorphic variants
Date: Wed, 15 Apr 2009 14:48:25 +0200	[thread overview]
Message-ID: <721f7f5a0904150548o7351d50fm44aaf29b249b67f6@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

Hi list,

I don't understand the following behaviour:

        Objective Caml version 3.11.0

# type t = [`A | `B of int u] and 'a u = 'a * t;;
Error: In the definition of t, type int u should be 'a u
# type t = A | B of int u and 'a u = 'a * t;;
type t = A | B of int u
and 'a u = 'a * t

Anyone's got a simple explanation for this ?

ph.

[-- Attachment #2: Type: text/html, Size: 434 bytes --]

             reply	other threads:[~2009-04-15 12:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 12:48 Philippe Veber [this message]
2009-04-16 12:23 ` [Caml-list] " Jacques Garrigue
2009-04-16 12:31   ` Philippe Veber
2009-04-16 12:44     ` Philippe Veber

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=721f7f5a0904150548o7351d50fm44aaf29b249b67f6@mail.gmail.com \
    --to=philippe.veber@googlemail.com \
    --cc=caml-list@yquem.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).