Browse thread
[Caml-list] "abbreviation of class expands to type.., but is used with type.."
-
Walter B. Rader
- Remi VANICAT
- Clement Renard
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 definition... -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr