|
@@ -857,7 +857,7 @@ module TypeBinding = struct
|
|
|
in
|
|
|
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
|
|
|
+ if not ctx.g.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
|
|
@@ -986,7 +986,7 @@ module TypeBinding = struct
|
|
|
end;
|
|
|
in
|
|
|
let maybe_bind r =
|
|
|
- if not !return_partial_type then bind r;
|
|
|
+ if not ctx.g.return_partial_type then bind r;
|
|
|
t
|
|
|
in
|
|
|
let r = make_lazy ~force:false ctx t maybe_bind "type_fun" in
|