English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Typechecking madness
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-04 (11:47)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Typechecking madness
Mikael Brockman wrote:
> Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp> writes:
>>From: Alex Baretta <alex@baretta.com>

>>>This expression has type
>>>   'a. (('a Pxp_document.node #Pxp_document.extension as 'a) -> unit) -> 
>>>but is here used with type
>>>   'b. (('b Pxp_document.node #Pxp_document.extension as 'b) -> unit) -> 

>>Even if the type checking is correct in detecting a type error, this
>>is not a valid error message.
> Actually, the first expert FAQ [1] addresses a (valid) such error
> message.  Briefly, this kind of error occurs when you have defined two
> types with the same name, which is easy to do when you're using the

Allow me to point out that I was not using the toplevel (REPL, as you 
call it); rather I was compiling a PXP document transformation with the 
toplevel. There actually was a type error in my code, and I did manage 
to figure it out. The error message did not really help, though.


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