소스 검색

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