Browse Source

fix `@:enum` abstract removal in no-dce mode (see #4103)

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

+ 1 - 1
filters.ml

@@ -1188,7 +1188,7 @@ let run com tctx main =
 				not (Meta.has Meta.Enum cf.cf_meta)
 				not (Meta.has Meta.Enum cf.cf_meta)
 			in
 			in
 			(* also filter abstract implementation classes that have only @:enum fields (issue #2858) *)
 			(* also filter abstract implementation classes that have only @:enum fields (issue #2858) *)
-			if not (Meta.has Meta.Used c.cl_meta || Common.defined com Define.As3) || not (List.exists is_runtime_field c.cl_ordered_statics) then
+			if not (List.exists is_runtime_field c.cl_ordered_statics) then
 				c.cl_extern <- true
 				c.cl_extern <- true
 		| _ -> ()
 		| _ -> ()
 	) com.types;
 	) com.types;