瀏覽代碼

fix typed cast elif

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

+ 1 - 1
genpy.ml

@@ -1164,7 +1164,7 @@ module Printer = struct
 			in
 			in
 			match follow v.v_type with
 			match follow v.v_type with
 				| TDynamic _ ->
 				| TDynamic _ ->
-					Printf.sprintf "%sif True:\n%s\t%s = _hx_e1\n%s\t%s" (if i > 0 then indent else "") indent v.v_name indent (print_expr {pctx with pc_indent = "\t" ^ pctx.pc_indent} e)
+					Printf.sprintf "%sif True:\n%s\t%s = _hx_e1\n%s\t%s" (if i > 0 then indent ^ "el" else "") indent v.v_name indent (print_expr {pctx with pc_indent = "\t" ^ pctx.pc_indent} e)
 				| TInst(c,_) ->
 				| TInst(c,_) ->
 					handle_base_type (t_infos (TClassDecl c))
 					handle_base_type (t_infos (TClassDecl c))
 				| TEnum(en,_) ->
 				| TEnum(en,_) ->