浏览代码

add missing follow, meh

Dan Korostelev 11 年之前
父节点
当前提交
55ecd235b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2140,7 +2140,7 @@ let rec type_binop ctx op e1 e2 is_assign_op with_type p =
 		   it with the first type to preserve comparison semantics. *)
 		begin match op with
 			| (OpEq | OpNotEq) ->
-				begin match follow e1.etype,e2.etype with
+				begin match follow e1.etype,follow e2.etype with
 					| TMono _,_ | _,TMono _ ->
 						Type.unify e1.etype e2.etype
 					| _ ->