Просмотр исходного кода

[inliner] disable unification (see #3542)

Simon Krajewski 10 лет назад
Родитель
Сommit
98eb90ff89
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      optimizer.ml

+ 2 - 2
optimizer.ml

@@ -533,7 +533,7 @@ let rec type_inline ctx cf f ethis params tret config p ?(self_calling_closure=f
 		if not has_params then
 			Some e
 		else
-			let mt = map_type cf.cf_type in
+(* 			let mt = map_type cf.cf_type in
 			let unify_func () = unify_raise ctx mt (TFun (List.map (fun e -> "",false,e.etype) params,tret)) p in
 			(match follow ethis.etype with
 			| TAnon a -> (match !(a.a_status) with
@@ -544,7 +544,7 @@ let rec type_inline ctx cf f ethis params tret config p ?(self_calling_closure=f
 						unify_raise ctx mt tb p
 					end
 				| _ -> unify_func())
-			| _ -> unify_func());
+			| _ -> unify_func()); *)
 			(*
 				this is very expensive since we are building the substitution list for
 				every expression, but hopefully in such cases the expression size is small