浏览代码

use unify_min result for init-less match expressions (fixed issue #1504)

Simon Krajewski 12 年之前
父节点
当前提交
46baf72a74
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      matcher.ml

+ 1 - 1
matcher.ml

@@ -1183,7 +1183,7 @@ let match_expr ctx e cases def with_type p =
 			| _ -> assert false
 			| _ -> assert false
 		end;
 		end;
 		let e = to_typed_ast mctx dt in
 		let e = to_typed_ast mctx dt in
-		let e = { e with epos = p} in
+		let e = { e with epos = p; etype = t} in
 		if !var_inits = [] then
 		if !var_inits = [] then
 			e
 			e
 		else begin
 		else begin