English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
type error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-01 (02:27)
From: Jacques Le Normand <rathereasy@g...>
Subject: type error
hello caml-list
thanks for all the help so far; it's been very educational
there's a type error I can't get my head around:

class a =

and b =
  inherit a
  method d (e : b) = (e :> a)

gives the error:

The abbreviation b expands to type < d : b -> a > but is used with type <  >

why is this?