Ver código fonte

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

Simon Krajewski 12 anos atrás
pai
commit
46baf72a74
1 arquivos alterados com 1 adições e 1 exclusões
  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
 		end;
 		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
 			e
 		else begin