From: Jacques GARRIGUE <garrigue@kurims.kyoto-u.ac.jp>
To: Francois.Pottier@inria.fr
Cc: caml-list@inria.fr
Subject: Re: More confusion with mutually recursive type definitions
Date: Mon, 16 Aug 1999 16:57:49 +0900 [thread overview]
Message-ID: <19990816165749X.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: Your message of "Mon, 16 Aug 1999 09:51:18 +0200" <19990816095118.02091@pauillac.inria.fr>
> OK, so I understand the following error message:
>
> # type 'a t = 'a and u = int t and v = bool t;;
> This type bool should be an instance of type int
>
> But then, why is the following declaration accepted?
>
> # type 'a t = 'a and u = A of int t and v = B of bool t;;
> type 'a t = 'a
> type u = | A of int t
> type v = | B of bool t
>
> I am still confused...
And ought to be... this is a bug:
Objective Caml version 2.02
# type 'a t = 'a constraint 'a = int and u = A of int t and v = B of bool t;;
Uncaught exception: Ctype.Unify(_)
Is it already corrected ?
Jacques
---------------------------------------------------------------------------
Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp
<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>
next prev parent reply other threads:[~1999-08-22 19:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-04 13:52 Weird behavior " Francois Pottier
1999-08-12 13:17 ` Hendrik Tews
1999-08-13 1:42 ` Jacques GARRIGUE
1999-08-16 6:31 ` Francois Pottier
1999-08-16 7:08 ` Jacques GARRIGUE
1999-08-16 7:51 ` More confusion " Francois Pottier
1999-08-16 7:57 ` Jacques GARRIGUE [this message]
1999-08-27 11:32 ` Weird behavior " Jerome Vouillon
1999-08-27 10:12 ` Jerome Vouillon
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=19990816165749X.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=Francois.Pottier@inria.fr \
--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