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] classes and module types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-13 (11:04)
From: POUS Damien <dpous@e...>
Subject: [Caml-list] classes and module types

class type m_t = object end
class type ['a] c_t = object constraint 'a = #m_t end

module type T = sig
  type t
  class c: [t] c_t
            Characters 125-126:
    class c: [t] c_t
The type parameter t does not meet its constraint: it should be
  #m_t as 'a = < .. >

I don't understand why this signature is rejected :
I would say it's ok, since one cannot write a module with this signature
without having t meeting the constraint...

How can I workaround this ?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: