From: Claudio Sacerdoti Coen <sacerdot@students.cs.unibo.it>
To: caml-list@inria.fr
Subject: Strange type error
Date: Mon, 23 Oct 2000 17:35:55 +0200 [thread overview]
Message-ID: <20001023173554.A30886@students.cs.unibo.it> (raw)
Hello,
let a.mli be
type 'a section_path = { x : int; }
and mind_section_path = [ `MIND] section_path
type const_section_path = [ `CONST] section_path
and b.mli be
type 'a section_path = { x : int; }
type mind_section_path = [ `MIND] section_path
type const_section_path = [ `CONST] section_path
b.mli is compiled without problems, but for a.mli I get
File "prova.mli", line 3, characters 26-35:
This type [ `CONST] should be an instance of type [ `MIND]
that seems nonsense to me. Someone could explain the error?
Thanks,
C.S.C.
--
----------------------------------------------------------------
Real name: Claudio Sacerdoti Coen
Graduate Computer Science Student at University of Bologna
Now at INRIA (Rocquencourt)
E-mail: sacerdot@cs.unibo.it
Claudio.Sacerdoti_Coen@inria.fr
http://caristudenti.cs.unibo.it/~sacerdot
----------------------------------------------------------------
next reply other threads:[~2000-10-24 5:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-23 15:35 Claudio Sacerdoti Coen [this message]
2000-10-24 7:05 ` Judicael Courant
2000-10-24 7:35 ` Jacques Garrigue
2000-10-24 16:47 Brent Fulgham
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=20001023173554.A30886@students.cs.unibo.it \
--to=sacerdot@students.cs.unibo.it \
--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