Explorar o código

[java/cs] fixed native enums being treated as @:hxgen

Caue Waneck %!s(int64=13) %!d(string=hai) anos
pai
achega
19b0b4cec9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      gencommon.ml

+ 4 - 1
gencommon.ml

@@ -7388,8 +7388,11 @@ struct
             convert e
           else if has_parameters e then
             convert e
-          else
+          else begin
+            (* take off the :hxgen meta from it, if there's any *)
+            e.e_meta <- List.filter (fun (n,_,_) -> not (n = ":hxgen")) e.e_meta;
             md
+          end
         | _ -> md
       in
       run