New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type constructor escape its scope #3381
Comments
Comment author: administrator
En effet, c'est louche, même si je n'ai pas encore trouvé un exemple Pour les développeurs Caml qui connaissent le typeur: j'ai
|
Comment author: administrator From: lvibert@irisa.fr
En effet, c'est lie' aau tracage des noms de variants, destine' a` From: xavier.leroy@inria.fr
Non, l'unification appelle update_level, qui est cense' faire le Un autre exemle utilisant les objets: let f x = let module M= struct class type c = object method m : int end let g x = (x :> c) end in M.g;;val f : 'a -> #M.c -> < m : int > = Tout ca est maintenant corrige'.
|
Comment author: administrator Fixed by Jacques on 2002-06-08. |
Original bug ID: 1189
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
ceci est sans doute plus un problème d'affichage du type qu'un bug, mais
il n'empêche que le type renvoyé n'est pas satisfaisant
let f x =
let module M = struct type t = [
A |
B] let z : t = x end inM.z
;;
val f : t -> M.t =
The text was updated successfully, but these errors were encountered: