* [Caml-list] classes and module types
@ 2003-11-13 11:04 POUS Damien
0 siblings, 0 replies; only message in thread
From: POUS Damien @ 2003-11-13 11:04 UTC (permalink / raw)
To: caml-list
Hi,
<<
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
end;;
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 ?
thanks,
damien
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-13 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-13 11:04 [Caml-list] classes and module types POUS Damien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox