Skip to content

Commit 01f54ff

Browse files
committed
Relax restriction on Bottom equations
1 parent b702e9d commit 01f54ff

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
@@ -1216,15 +1216,15 @@ let meet_equations_on_params t ~params ~param_types =
12161216
that the caller can handle this case.
12171217
In practice, this would likely mean treating the
12181218
corresponding continuation handler as unreachable. *)
1219-
Misc.fatal_errorf
1220-
"Bottom equation added on parameter:@.\
1221-
Parameter:@ %a@.\
1222-
Parameter type:@ %a@.\
1223-
Typing env:@ %a"
1224-
Kinded_parameter.print param
1225-
Type_grammar.print param_type
1226-
print t
1227-
(* add_equation t name (Type_grammar.bottom kind) *)
1219+
(* Misc.fatal_errorf
1220+
* "Bottom equation added on parameter:@.\
1221+
* Parameter:@ %a@.\
1222+
* Parameter type:@ %a@.\
1223+
* Typing env:@ %a"
1224+
* Kinded_parameter.print param
1225+
* Type_grammar.print param_type
1226+
* print t *)
1227+
add_equation t name (Type_grammar.bottom kind)
12281228
| Ok (meet_result, env_extension) ->
12291229
let meet_ty =
12301230
Meet_result.extract_value meet_result existing_type param_type

0 commit comments

Comments
 (0)