caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Fernando Alegre <fernando@cc.gatech.edu>
To: caml-list@inria.fr
Subject: empty type
Date: Mon, 19 Feb 2007 08:47:38 -0500	[thread overview]
Message-ID: <20070219134738.GA26859@gaia.cc.gatech.edu> (raw)


Hi,

I think this is a bug, but I'm not sure. I mistakenly defined type e using
Haskell notation, and it was accepted. However, it shadowed the unit type.
Can someone confirm whether this should be acceptable or not?

Thanks.

        Objective Caml version 3.09.2

# type e = ();;
type e = ()
# type t = A of e | B of unit;;
type t = A of e | B of unit
# A();;
- : t = A ()
# B();;
This expression has type e but is here used with type unit


Fernando


             reply	other threads:[~2007-02-19 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-19 13:47 Fernando Alegre [this message]
2007-02-19 14:14 ` [Caml-list] " skaller
2007-02-19 14:23   ` RE : " Mathias Kende
2007-02-19 16:03     ` Andrej Bauer
2007-02-19 20:51       ` Fernando Alegre
2007-02-20  9:05       ` Bruno De Fraine
2007-02-19 22:36 ` Richard Jones

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=20070219134738.GA26859@gaia.cc.gatech.edu \
    --to=fernando@cc.gatech.edu \
    --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).