Version française
Home     About     Download     Resources     Contact us    
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 <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) -> 
>>>unit
>>>but is here used with type
>>>   'b. (('b Pxp_document.node #Pxp_document.extension as 'b) -> unit) -> 
>>>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
> REPL.
> 

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.

Alex

-------------------
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