瀏覽代碼

[server] optimistically remove extern shadowing-check workaround

I cannot seem to reproduce this anymore.
Simon Krajewski 6 年之前
父節點
當前提交
71e76579c6
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/compiler/server.ml

+ 1 - 5
src/compiler/server.ml

@@ -396,11 +396,7 @@ let check_module sctx ctx m p =
 				let old_mark = m.m_extra.m_mark in
 				m.m_extra.m_mark <- mark;
 				if old_mark <= start_mark then begin
-					(* Workaround for preview.4 Java issue *)
-					begin match m.m_extra.m_kind with
-						| MExtern -> check_module_path()
-						| _ -> if not (has_policy NoCheckShadowing) then check_module_path();
-					end;
+					if not (has_policy NoCheckShadowing) then check_module_path();
 					if not (has_policy NoCheckFileTimeModification) then check_file();
 				end;
 				if not (has_policy NoCheckDependencies) then check_dependencies();