diff options
author | Jules Aguillon <jules@j3s.fr> | 2023-03-27 10:50:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 10:50:46 +0200 |
commit | afbffd5144304f7f5ce63fa65b6962827e1da47a (patch) | |
tree | b0563b0513161209e163bb349553defc2804b18b /utils | |
parent | b45983abffc2ab07c34c3f686fda08f3d4c5e954 (diff) | |
download | ocaml-afbffd5144304f7f5ce63fa65b6962827e1da47a.tar.gz |
Don't suggest a semicolon when the type is not unit (#12116)
Don't suggest a semicolon when the type is not unit
This hint message is printed when a function receives too many
arguments. It doesn't make sense when the return type of the function is
not unit:
Line 2, characters 2-11:
2 | (+) 1 2 3
^^^^^^^^^
Error: The function '(+)' has type int -> int -> int
It is applied to too many arguments
Line 2, characters 8-10:
2 | (+) 1 2 3
^^
Hint: Did you forget a ';'?
This removes the message when it is not applicable.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions