Skip to content

Commit b4ae703

Browse files
committed
adjust
1 parent 27a6e0a commit b4ae703

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/ml/error_message_utils.ml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
365365
| _, Some ({Types.desc = Tconstr (p1, _, _)}, _)
366366
when Path.same p1 Predef.path_promise ->
367367
fprintf ppf "\n\n - Did you mean to await this promise before using it?\n"
368-
| ( _,
369-
Some
370-
( {
371-
Types.desc =
372-
Tvariant
373-
{row_fields = [(constructor_name, _)]; row_closed = false};
374-
},
375-
ty ) )
368+
| _, Some ({Types.desc = Tvariant {row_fields = [(constructor_name, _)]}}, ty)
376369
when is_variant_and_has_constructor ~env ~extract_concrete_typedecl
377370
~constructor_name ty ->
378371
(* This does not take into account whether the constructor actually

0 commit comments

Comments
 (0)