closes #7206
@@ -1473,7 +1473,7 @@ module Match = struct
) cases in
let infer_switch_type () =
match with_type with
- | NoValue -> mk_mono()
+ | NoValue -> ctx.t.tvoid
| Value ->
let el = List.map (fun (case,_,_) -> match case.Case.case_expr with Some e -> e | None -> mk (TBlock []) ctx.t.tvoid p) cases in
unify_min ctx el