Browse Source

[java/cs] fixed invalid assignment of extern vars

Caue Waneck 12 năm trước cách đây
mục cha
commit
4df7d34961
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      gencommon.ml

+ 1 - 1
gencommon.ml

@@ -1859,7 +1859,7 @@ struct
       let init = List.fold_left (fun acc cf ->
         match cf.cf_kind, should_handle_dynamic_functions with
           | (Var _, _)
-          | (Method (MethDynamic), true) ->
+          | (Method (MethDynamic), true) when not (Type.is_extern_field cf) ->
             (match cf.cf_expr with
               | Some e ->
                 (match cf.cf_params with