소스 검색

explicitly allow sys package in core classes

Simon Krajewski 3 달 전
부모
커밋
122bd2118b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/typing/typeload.ml

+ 1 - 0
src/typing/typeload.ml

@@ -793,6 +793,7 @@ let load_core_class ctx c =
 			com2.defines.Define.values <- PMap.empty;
 			com2.defines.Define.values <- PMap.empty;
 			Common.define com2 Define.CoreApi;
 			Common.define com2 Define.CoreApi;
 			Common.define com2 Define.Sys;
 			Common.define com2 Define.Sys;
+			allow_package com2 "sys";
 			Define.raw_define_value com2.defines "target.threaded" "true"; (* hack because we check this in sys.thread classes *)
 			Define.raw_define_value com2.defines "target.threaded" "true"; (* hack because we check this in sys.thread classes *)
 			if ctx.com.is_macro_context then Common.define com2 Define.Macro;
 			if ctx.com.is_macro_context then Common.define com2 Define.Macro;
 			com2.class_paths#lock_context (platform_name_macro ctx.com) true;
 			com2.class_paths#lock_context (platform_name_macro ctx.com) true;