Explorar o código

[matcher] still bother in values

Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
ff4b8d4856
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/typing/matcher.ml

+ 1 - 1
src/typing/matcher.ml

@@ -1612,7 +1612,7 @@ module Match = struct
 		{e with epos = p}
 
 	let match_expr ctx e cases def with_type postfix_match p = match cases,def with
-		| [],None ->
+		| [],None when (match with_type with WithType.NoValue -> true | _ -> false) ->
 			type_expr ctx e WithType.value
 		| _ ->
 			match_expr ctx e cases def with_type postfix_match p