Ver código fonte

always remove `@:generic` base classes that have `@:const` type parameters

Simon Krajewski 10 anos atrás
pai
commit
242273677a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      filters.ml

+ 1 - 1
filters.ml

@@ -802,7 +802,7 @@ let rec is_removable_class c =
 			| _ -> false) ||
 		List.exists (fun (_,t) -> match follow t with
 			| TInst(c,_) ->
-				Codegen.has_ctor_constraint c
+				Codegen.has_ctor_constraint c || Meta.has Meta.Const c.cl_meta
 			| _ ->
 				false
 		) c.cl_params)