File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4056,9 +4056,13 @@ let report_error env ppf = function
4056
4056
| Illegal_letrec_pat ->
4057
4057
fprintf ppf
4058
4058
" Only variables are allowed as left-hand side of `let rec'"
4059
+ | Labels_omitted [label] ->
4060
+ fprintf ppf " Label ~%s was omitted in the application of this labeled function."
4061
+ label
4059
4062
| Labels_omitted labels ->
4060
- fprintf ppf " For labeled function, labels %s were omitted in the application of this function."
4061
- (String. concat " , " labels)
4063
+ let labelsString = labels |> List. map(fun label -> " ~" ^ label) |> String. concat " , " in
4064
+ fprintf ppf " Labels %s were omitted in the application of this labeled function."
4065
+ labelsString
4062
4066
| Empty_record_literal ->
4063
4067
fprintf ppf " Empty record literal {} should be type annotated or used in a record context."
4064
4068
| Uncurried_arity_mismatch (typ , arity , args ) ->
You can’t perform that action at this time.
0 commit comments