Skip to content

Commit 3bf84fe

Browse files
committed
Flush between actx.classes loading
1 parent 641120d commit 3bf84fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compiler/compiler.ml

+4-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ let do_type ctx mctx actx display_file_dot_path =
310310
com.callbacks#run com.error_ext com.callbacks#get_after_init_macros;
311311
run_or_diagnose ctx (fun () ->
312312
if com.display.dms_kind <> DMNone then DisplayTexpr.check_display_file tctx cs;
313-
List.iter (fun cpath -> ignore(tctx.Typecore.g.Typecore.do_load_module tctx cpath null_pos)) (List.rev actx.classes);
313+
List.iter (fun cpath ->
314+
ignore(tctx.Typecore.g.Typecore.do_load_module tctx cpath null_pos);
315+
Typecore.flush_pass tctx.g (PBuildClass:Typecore.typer_pass) "actx.classes"
316+
) (List.rev actx.classes);
314317
Finalization.finalize tctx;
315318
);
316319
end with TypeloadParse.DisplayInMacroBlock ->

0 commit comments

Comments
 (0)