caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: alex@baretta.com
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Typechecking madness
Date: Wed, 03 Mar 2004 17:16:27 +0900	[thread overview]
Message-ID: <20040303171627X.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <40434623.6040100@baretta.com>

From: Alex Baretta <alex@baretta.com>
> I'm sure the typechecker knows what he's doing, but the following error 
> message does look strange.
> 
> This expression has type
>    'a. (('a Pxp_document.node #Pxp_document.extension as 'a) -> unit) -> 
> unit
> but is here used with type
>    'b. (('b Pxp_document.node #Pxp_document.extension as 'b) -> unit) -> 
> unit
> 
> Is this due to the two '#' signs on Pxp_document.extension, yielding two 
> different ellipsis type variables?

Indeed, this is a strange error message.
As far as I can see, it really says "This expression has type t but is
here used with type t". 'a and 'b are bound variables, so the ellipsis
is not the problem.
Even if the type checking is correct in detecting a type error, this
is not a valid error message.
Can you send me a sufficiently small program exhibiting this
behaviour?

        Jacques Garrigue

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2004-03-03  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 14:18 Alex Baretta
2004-03-03  8:16 ` Jacques Garrigue [this message]
2004-03-03 15:19   ` Mikael Brockman
2004-03-04 11:48     ` Alex Baretta

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=20040303171627X.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=alex@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;
as well as URLs for NNTP newsgroup(s).