From: "Walter B. Rader" <wrader@OCF.Berkeley.EDU>
To: caml-list@inria.fr
Subject: [Caml-list] "abbreviation of class expands to type.., but is used with type.."
Date: Tue, 8 Jan 2002 02:10:52 -0800 (PST) [thread overview]
Message-ID: <Pine.SOL.4.43.0201080207270.10751-100000@conquest.OCF.Berkeley.EDU> (raw)
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?
Thanks,
Walter Rader
/usr/bin/ocamlopt -c -unsafe -inline 10 -I ../lib
gui-test.ml File "gui-test.ml", line 140, characters 10-19041:
The abbreviation widgetBase expands to type
< add_widget : widgetBase -> int -> int -> bool -> int -> unit;
clearOutline : Sdlvideo.surface -> Sdlvideo.surface -> widgetInfo -> unit;
clippedDirection : int -> int -> int -> int;
clippedHeight : widgetInfo -> int; clippedWidth : widgetInfo -> int;
createSurface : unit -> unit; decorateBackground : unit -> unit;
decorateForeground : unit -> unit;
doToValidWidgets : widgetInfo list -> (widgetInfo -> unit) -> unit;
drawOutline : widgetInfo -> unit; get_height : int;
get_surface : Sdlvideo.surface; get_width : int;
handleEvent : Sdlevents.event -> unit; isMovable : 'a;
redrawBackgroundUnderWidget : widgetInfo -> unit;
redrawBackgroundsUnderWidgets : widgetInfo list -> unit;
redrawWidget : widgetInfo -> unit; redrawWidgets : widgetInfo list -> unit;
updateOutlineRect : Sdlvideo.surface -> widgetInfo -> unit;
updateWidgetRect : widgetInfo -> unit;
updateWidgetRects : widgetInfo list -> unit;
whichWidgetWasClicked : int * int -> widgetInfo option;
widgetWasMoved : widgetInfo -> unit >
but is used with type
< add_widget : widgetBase -> int -> int -> bool -> int -> unit;
clearOutline : Sdlvideo.surface -> Sdlvideo.surface -> widgetInfo -> unit;
clippedDirection : int -> int -> int -> int;
clippedHeight : widgetInfo -> int; clippedWidth : widgetInfo -> int;
createSurface : unit -> unit; decorateBackground : unit -> unit;
decorateForeground : unit -> unit;
doToValidWidgets : widgetInfo list -> (widgetInfo -> unit) -> unit;
drawOutline : widgetInfo -> unit; get_height : int;
get_surface : Sdlvideo.surface; get_width : int;
handleEvent : Sdlevents.event -> unit; isMovable : bool;
is_rootWidget : bool; redrawBackgroundUnderWidget : widgetInfo -> unit;
redrawBackgroundsUnderWidgets : widgetInfo list -> unit;
redrawWidget : widgetInfo -> unit; redrawWidgets : widgetInfo list -> unit;
updateOutlineRect : Sdlvideo.surface -> widgetInfo -> unit;
updateWidgetRect : widgetInfo -> unit;
updateWidgetRects : widgetInfo list -> unit;
whichWidgetWasClicked : int * int -> widgetInfo option;
widgetWasMoved : widgetInfo -> unit; .. >
make: *** [gui-test.cmx] Error 2
-------------------
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
next reply other threads:[~2002-01-08 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-08 10:10 Walter B. Rader [this message]
2002-01-08 11:01 ` Remi VANICAT
2002-01-08 12:31 ` Clement Renard
2002-01-08 11:04 Florian Douetteau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.4.43.0201080207270.10751-100000@conquest.OCF.Berkeley.EDU \
--to=wrader@ocf.berkeley.edu \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox