|
@@ -860,6 +860,7 @@ module TypeBinding = struct
|
|
|
let r = make_lazy ~force:false ctx t (fun r ->
|
|
|
(* type constant init fields (issue #1956) *)
|
|
|
if not !return_partial_type || (match fst e with EConst _ -> true | _ -> false) then begin
|
|
|
+ enter_field_typing_pass ctx ("bind_var_expression",fst ctx.curclass.cl_path @ [snd ctx.curclass.cl_path;ctx.curfield.cf_name]);
|
|
|
if (Meta.has (Meta.Custom ":debug.typing") (c.cl_meta @ cf.cf_meta)) then ctx.com.print (Printf.sprintf "Typing field %s.%s\n" (s_type_path c.cl_path) cf.cf_name);
|
|
|
let e = type_var_field ctx t e fctx.is_static fctx.is_display_field p in
|
|
|
let maybe_run_analyzer e = match e.eexpr with
|