瀏覽代碼

Remove cyclic import hack for `package runtime`

gingerBill 1 年之前
父節點
當前提交
3c24584290
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/checker.cpp

+ 4 - 4
src/checker.cpp

@@ -4579,10 +4579,10 @@ gb_internal Array<ImportPathItem> find_import_path(Checker *c, AstPackage *start
 					continue;
 				}
 
-				if (pkg->kind == Package_Runtime) {
-					// NOTE(bill): Allow cyclic imports within the runtime package for the time being
-					continue;
-				}
+				// if (pkg->kind == Package_Runtime) {
+				// 	// NOTE(bill): Allow cyclic imports within the runtime package for the time being
+				// 	continue;
+				// }
 
 				ImportPathItem item = {pkg, decl};
 				if (pkg == end) {