ソースを参照

[cs/java] only generate TCast for overloaded constructor arguments (see #3379)

Dan Korostelev 11 年 前
コミット
53048e6d90
1 ファイル変更1 行追加1 行削除
  1. 1 1
      gencommon.ml

+ 1 - 1
gencommon.ml

@@ -6310,7 +6310,7 @@ struct
 				| TNew (cl, tparams, eparams) -> (try
 					let is_overload, cf, sup, stl = choose_ctor gen cl tparams (List.map (fun e -> e.etype) eparams) maybe_empty_t e.epos in
 					let handle e t1 t2 =
-						if true then
+						if is_overload then
 							let ret = handle e t1 t2 in
 							match ret.eexpr with
 							| TCast _ -> ret