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] "abbreviation of class expands to type.., but is used with type.."
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi VANICAT <vanicat@l...>
Subject: Re: [Caml-list] "abbreviation of class expands to type.., but is used with type.."
"Walter B. Rader" <wrader@OCF.Berkeley.EDU> writes:

> I'm getting a vague error message when trying to compile my project in
> OCaml.  The summary of the error message is in the subject of the message,
> again summarized here:
> "The abbreviation widgetBase expands to type ...
>  but is used with type..."
> (Full text appears below.)  The error apparenty appears on line 140, which
> is the start of the definition of the class.  Therefore, I have no idea
> where I'm using the class incorrectly.
> Any suggestions?

Yes, you should look the difference between the two 

< add_widget : widgetBase -> int -> int -> bool -> int -> unit;
  widgetWasMoved : widgetInfo -> unit >

there should be some. And you will find more precisely where is the
mistake. You should also look to the reference to self in the class

Rémi Vanicat
Bug reports:  FAQ:
To unsubscribe, mail  Archives: