Selaa lähdekoodia

[matcher] still bother in values

Simon Krajewski 6 vuotta sitten
vanhempi
commit
ff4b8d4856
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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