summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-05-28 11:56:28 +0000
committerAlain Frisch <alain@frisch.fr>2012-05-28 11:56:28 +0000
commitc46da52b5739222bb31be9f0b416900d1d25392c (patch)
tree6f425d008b24552341d37174b042a3efc57d3ab6
parente9387ac80f7dfc520fd50fa50194a5e89b666228 (diff)
Typo.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12490 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--typing/typecore.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/typing/typecore.ml b/typing/typecore.ml
index b1cfc2c7f..168922d44 100644
--- a/typing/typecore.ml
+++ b/typing/typecore.ml
@@ -2982,12 +2982,12 @@ let report_error ppf = function
(function ppf ->
fprintf ppf "but an expression was expected of type")
| Apply_non_function typ ->
+ reset_and_mark_loops typ;
begin match (repr typ).desc with
Tarrow _ ->
fprintf ppf "This function is applied to too many arguments;@ ";
fprintf ppf "maybe you forgot a `;'. The function has type @ %a" type_expr typ
| _ ->
- reset_and_mark_loops typ;
fprintf ppf
"This expression is not a function; it cannot be applied.@ It has type@ %a" type_expr typ
end