Przeglądaj źródła

[cs/java] generate proper params in FClosure for method closures in __hx_getField

Dan Korostelev 8 lat temu
rodzic
commit
628decef54
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/generators/gencommon/reflectionCFs.ml

+ 1 - 1
src/generators/gencommon/reflectionCFs.ml

@@ -1099,7 +1099,7 @@ let implement_get_set ctx cl =
 					| Var _
 					| Method MethDynamic -> { eexpr = TField (ethis, FInstance(cl,List.map snd cl.cl_params,cf)); etype = cf_type; epos = pos }
 					| _ ->
-							{ eexpr = TField (this, FClosure(Some (cl,[]), cf)); etype = cf_type; epos = pos } (* TODO: FClosure change *)
+							{ eexpr = TField (this, FClosure(Some (cl,List.map snd cl.cl_params), cf)); etype = cf_type; epos = pos }
 			in
 
 			let do_field cf cf_type =