Explorar o código

check typedef deprecation during type_module_type

Simon Krajewski %!s(int64=11) %!d(string=hai) anos
pai
achega
0eb30bd355
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      typer.ml

+ 1 - 0
typer.ml

@@ -635,6 +635,7 @@ let rec type_module_type ctx t tparams p =
 		mk (TTypeExpr (TEnumDecl e)) (TType (e.e_type,types)) p
 	| TTypeDecl s ->
 		let t = apply_params s.t_types (List.map (fun _ -> mk_mono()) s.t_types) s.t_type in
+		Codegen.DeprecationCheck.check_typedef ctx.com s p;
 		(match follow t with
 		| TEnum (e,params) ->
 			type_module_type ctx (TEnumDecl e) (Some params) p