Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* method name collision ?
@ 2004-12-25 19:53 briand
  2004-12-25 22:57 ` [Caml-list] " Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: briand @ 2004-12-25 19:53 UTC (permalink / raw)
  To: caml-list


I'm getting the following error 

The method point has type 'a -> 'b but is expected to have type
  x:int -> y:int -> unit

for this code :

method point p0 =
 etc..

The error makes sense, as in, I know that it is colliding with a
method defined in the drawable class.

However I am inheriting the class using :

  inherit GDraw.drawable ?colormap w as drawable

It seems to me that the method I am defining, self#point, and the
method in drawable, i.e. drawable#point, are distinct and therefore
I should not be seeing this error message ?

Can someone enlighten me ?


Thanks



Brian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-26 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-25 19:53 method name collision ? briand
2004-12-25 22:57 ` [Caml-list] " Jacques Garrigue
2004-12-26 18:20   ` John Prevost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox