Explorar o código

fix super calls when KwArgs and VarArgs are involved

frabbit %!s(int64=10) %!d(string=hai) anos
pai
achega
e9046594b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -1496,7 +1496,7 @@ module Printer = struct
 			| "__define_feature__",[_;e] ->
 				print_expr pctx e
 			| "super",_ ->
-				let s_el = print_exprs pctx ", " el in
+				let s_el = (print_call_args pctx e1 el) in
 				Printf.sprintf "super().__init__(%s)" s_el
 			| ("python_Syntax._pythonCode"),[({ eexpr = TConst (TString code) } as ecode); {eexpr = TArrayDecl tl}] ->
 				let exprs = Array.of_list tl in