diff --git a/src/passes/4-typer-new/typer.ml b/src/passes/4-typer-new/typer.ml index 865461c58..f22dd61f9 100644 --- a/src/passes/4-typer-new/typer.ml +++ b/src/passes/4-typer-new/typer.ml @@ -54,7 +54,7 @@ module Errors = struct let match_redundant_case : type a . (a, unit) I.matching -> Location.t -> unit -> _ = fun matching loc () -> - let title = (thunk "missing case in match") in + let title = (thunk "redundant case in match") in let message () = "" in let data = [ ("variant" , fun () -> Format.asprintf "%a" I.PP.matching_type matching) ; diff --git a/src/passes/4-typer-old/typer.ml b/src/passes/4-typer-old/typer.ml index 57918b67f..b54b7e579 100644 --- a/src/passes/4-typer-old/typer.ml +++ b/src/passes/4-typer-old/typer.ml @@ -61,7 +61,7 @@ module Errors = struct let match_redundant_case : type a . (a, unit) I.matching -> Location.t -> unit -> _ = fun matching loc () -> - let title = (thunk "missing case in match") in + let title = (thunk "redundant case in match") in let message () = "" in let data = [ ("variant" , fun () -> Format.asprintf "%a" I.PP.matching_type matching) ;