Skip to content

Commit 0a951b4

Browse files
committed
Relax restriction on Bottom equations
1 parent bb0e1d4 commit 0a951b4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

middle_end/flambda/types/env/typing_env.rec.ml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,15 +1212,15 @@ let meet_equations_on_params t ~params ~param_types =
12121212
that the caller can handle this case.
12131213
In practice, this would likely mean treating the
12141214
corresponding continuation handler as unreachable. *)
1215-
Misc.fatal_errorf
1216-
"Bottom equation added on parameter:@.\
1217-
Parameter:@ %a@.\
1218-
Parameter type:@ %a@.\
1219-
Typing env:@ %a"
1220-
Kinded_parameter.print param
1221-
Type_grammar.print param_type
1222-
print t
1223-
(* add_equation t name (Type_grammar.bottom kind) *)
1215+
(* Misc.fatal_errorf
1216+
* "Bottom equation added on parameter:@.\
1217+
* Parameter:@ %a@.\
1218+
* Parameter type:@ %a@.\
1219+
* Typing env:@ %a"
1220+
* Kinded_parameter.print param
1221+
* Type_grammar.print param_type
1222+
* print t *)
1223+
add_equation t name (Type_grammar.bottom kind)
12241224
| Ok (meet_result, env_extension) ->
12251225
let meet_ty =
12261226
Meet_result.extract_value meet_result existing_type param_type

0 commit comments

Comments
 (0)