Browse Source

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

Simon Krajewski 10 years ago
parent
commit
242273677a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      filters.ml

+ 1 - 1
filters.ml

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