Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Judicael Courant <Judicael.Courant@lri.fr>
To: Claudio Sacerdoti Coen <sacerdot@students.cs.unibo.it>
Cc: caml-list@inria.fr
Subject: Re: Strange type error
Date: Tue, 24 Oct 2000 09:05:30 +0200	[thread overview]
Message-ID: <39F534BA.BF2C905E@lri.fr> (raw)
In-Reply-To: <20001023173554.A30886@students.cs.unibo.it>

Claudio Sacerdoti Coen a écrit :
> 
>  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
[...]
> 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?
> 

I had a similar problem some time ago. This strange behavior of O'Caml
3.00 was corrected in the CVS version:

------------------------------------------------------
        Objective Caml version 3.00

# type 'a section_path = { x : int; }
    and mind_section_path = [ `MIND] section_path
    ;;
type [ `MIND] section_path = { x : int; }  constraint [ `MIND] = [
`MIND]
type mind_section_path = [ `MIND] section_path
# 
------------------------------------------------------
        Objective Caml version 3.00+8 (2000-06-30)

# type 'a section_path = { x : int; }
    and mind_section_path = [ `MIND] section_path
    ;;
    type 'a section_path = { x : int; } 
type mind_section_path = [ `MIND] section_path
# 
------------------------------------------------------

Judicaël.
-- 
Judicael.Courant@lri.fr, http://www.lri.fr/~jcourant/
(+33) (0)1 69 15 64 85
"Montre moi des morceaux de ton monde, et je te montrerai le mien"
Tim, matricule #929, condamné à mort.
http://rozenn.picard.free.fr/tim.html



  reply	other threads:[~2000-10-24 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23 15:35 Claudio Sacerdoti Coen
2000-10-24  7:05 ` Judicael Courant [this message]
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=39F534BA.BF2C905E@lri.fr \
    --to=judicael.courant@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=sacerdot@students.cs.unibo.it \
    /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