Selaa lähdekoodia

do not forget all args

Simon Krajewski 11 vuotta sitten
vanhempi
commit
624b5403b0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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