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
object type error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Wohlwend <micha-1@f...>
Subject: object type error

why do I often get this error message? 

( type xxx is a class type and the other class implements this interface)

This expression has type
  < (* many methods *); .. >
but is here used with type xxx
Self type cannot be unified with a closed object type
I try to get rid of them by adding random type declarations which I mostly 
don't understand :-), but that's not the solution.

What is the reason for that message?