Browse Source

[java/cs] fixed invalid assignment of extern vars

Caue Waneck 12 years ago
parent
commit
4df7d34961
1 changed files with 1 additions and 1 deletions
  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