瀏覽代碼

do not forget all args

Simon Krajewski 11 年之前
父節點
當前提交
624b5403b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -1306,7 +1306,7 @@ module Generator = struct
 				let args = List.map (fun s ->
 					alloc_var s t_dynamic,None
 				) extra_args in
-				{e with eexpr = TFunction {f with tf_args = args}}
+				{e with eexpr = TFunction {f with tf_args = args @ f.tf_args}}
 			| _ ->
 				e
 		in