Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/ml/typecore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,8 @@ let print_expr_type_clash ~context env loc trace ppf =
show_extra_help ppf env trace

let report_arity_mismatch ~arity_a ~arity_b ppf =
fprintf ppf "This function expected @{<info>%s@} %s, but got @{<error>%s@}"
fprintf ppf
"This function is expected to have @{<info>%s@} %s, but has @{<error>%s@}"
arity_b
(if arity_b = "1" then "argument" else "arguments")
arity_a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
1 │ Belt.Array.map([], (a, b) => 1)
2 │

This function expected 1 argument, but got 2
This function is expected to have 1 argument, but has 2
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
3 │ let z1 = expectCurried((x, y) => x + y)
4 │

This function expected 1 argument, but got 2
This function is expected to have 1 argument, but has 2
Loading