Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Typechecking madness
Mikael Brockman wrote:
> Jacques Garrigue <> writes:
>>From: Alex Baretta <>

>>>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 Archives:
Bug reports: FAQ:
Beginner's list: