浏览代码

fix super calls when KwArgs and VarArgs are involved

frabbit 10 年之前
父节点
当前提交
e9046594b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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