浏览代码

minor fix

frabbit 11 年之前
父节点
当前提交
40870dfcd8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      genpy.ml

+ 1 - 1
genpy.ml

@@ -640,7 +640,7 @@ module Transformer = struct
 					in
 					in
 					match b with
 					match b with
 					| [{ eexpr = TVar(_, Some({ eexpr = TFunction(f)}))} as b] ->
 					| [{ eexpr = TVar(_, Some({ eexpr = TFunction(f)}))} as b] ->
-						Some(eif1.a_expr), List.append blocks [b]
+						Some(eelse1.a_expr), List.append blocks [b]
 					| _ -> regular
 					| _ -> regular
 			in
 			in
 			let blocks = List.append econd1.a_blocks blocks in
 			let blocks = List.append econd1.a_blocks blocks in