瀏覽代碼

[java] fixed bug with new NativeArray<Null<SomeReferenceType>>

Caue Waneck 13 年之前
父節點
當前提交
6e401c7a3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genjava.ml

+ 1 - 1
genjava.ml

@@ -919,7 +919,7 @@ let configure gen =
             it seems that Java doesn't like when you create a new array with the type parameter defined
             so we'll just ignore all type parameters, and hope for the best!
           *)
-          let rec transform_t t = match gen.gfollow#run_f t with
+          let rec transform_t t = match real_type t with
             | TInst( ({ cl_path = (["java"], "NativeArray") } as narr), [t]) ->
               TInst(narr, [transform_t t])
             | TInst(cl, params) -> TInst(cl, List.map (fun _ -> t_dynamic) params)