From: Alessandro Baretta <a.baretta@studio.baretta.com>
To: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] 'a & string unification issue
Date: Thu, 24 Aug 2006 16:51:57 +0200 [thread overview]
Message-ID: <44EDBD0D.1070502@studio.baretta.com> (raw)
In-Reply-To: <20060823.082459.99830220.garrigue@math.nagoya-u.ac.jp>
Jacques Garrigue wrote:
> From: Alessandro Baretta <a.baretta@studio.baretta.com>
> Looks like your implementation contains at least `Options, while the
> interface doesn't. Since it is in a contravariant position, you should
> be able to remove it from the implementation by subtyping.
>
> Jacques Garrigue
Ah, yes! The error message was so long that I missed the relevant spot, and the
`&' sign tricked me into thinking that the issue was there. And, yes, the
problem is the "> `Options" constraint, which appears in the inferred signature
of the function, but not in the mli.
Thank you very much.
Alex
prev parent reply other threads:[~2006-08-24 15:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-22 17:03 Alessandro Baretta
2006-08-22 23:24 ` [Caml-list] " Jacques Garrigue
2006-08-24 14:51 ` Alessandro Baretta [this message]
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=44EDBD0D.1070502@studio.baretta.com \
--to=a.baretta@studio.baretta.com \
--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