Browse Source

[java/cs] Test for Meta.Class, not e_extern

Cauê Waneck 10 years ago
parent
commit
6a5d79b55c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gencommon.ml

+ 1 - 1
gencommon.ml

@@ -6124,7 +6124,7 @@ struct
 			| TEnum(en, params_to), TInst(cl, params_from)
 				| TInst(cl, params_to), TEnum(en, params_from) ->
 					(* this is here for max compatibility with EnumsToClass module *)
-				if en.e_path = cl.cl_path && en.e_extern then begin
+				if en.e_path = cl.cl_path && Meta.has Meta.Class en.e_meta then begin
 					(try
 						List.iter2 (type_eq gen (if gen.gallow_tp_dynamic_conversion then EqRightDynamic else EqStrict)) params_from params_to;
 						e