Pārlūkot izejas kodu

handle import Abstract.* (fixed issue #1484)

Simon Krajewski 12 gadi atpakaļ
vecāks
revīzija
daacf4ccbe
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      typeload.ml

+ 2 - 1
typeload.ml

@@ -1755,7 +1755,8 @@ let rec init_module_type ctx context_init do_init (decl,p) =
 				) in
 				context_init := (fun() ->
 					match resolve_typedef t with
-					| TClassDecl c ->
+					| TClassDecl c
+					| TAbstractDecl {a_impl = Some c} ->
 						c.cl_build();
 						PMap.iter (fun _ cf -> ctx.m.module_globals <- PMap.add cf.cf_name (TClassDecl c,cf.cf_name) ctx.m.module_globals) c.cl_statics
 					| TEnumDecl e ->