Ocaml_typing.Typetexp
Sourceval transl_simple_type :
Env.t ->
?univars:TyVarEnv.poly_univars ->
closed:bool ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_type
val transl_simple_type_univars :
Env.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_type
val transl_simple_type_delayed :
Env.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_type * Types.type_expr * (unit -> unit)
type error =
| Unbound_type_variable of string * string list
| No_type_wildcards
| Undefined_type_constructor of Path.t
| Type_arity_mismatch of Ocaml_parsing.Longident.t * int * int
| Bound_type_variable of string
| Recursive_type
| Unbound_row_variable of Ocaml_parsing.Longident.t
| Type_mismatch of Errortrace.unification_error
| Alias_type_mismatch of Errortrace.unification_error
| Present_has_conjunction of string
| Present_has_no_type of string
| Constructor_mismatch of Types.type_expr * Types.type_expr
| Not_a_variant of Types.type_expr
| Invalid_variable_name of string
| Cannot_quantify of string * Types.type_expr
| Multiple_constraints_on_type of Ocaml_parsing.Longident.t
| Method_mismatch of string * Types.type_expr * Types.type_expr
| Opened_object of Path.t option
| Not_an_object of Types.type_expr
val transl_modtype_longident :
(Ocaml_parsing.Location.t ->
Env.t ->
Ocaml_parsing.Longident.t ->
Path.t)
ref
val transl_modtype :
(Env.t -> Ocaml_parsing.Parsetree.module_type -> Typedtree.module_type) ref