Explorar o código

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

Simon Krajewski %!s(int64=10) %!d(string=hai) anos
pai
achega
ff6f33e0fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 			in
 			(* 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
 		| _ -> ()
 	) com.types;