aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-07-26 16:34:09 +0200
committerPierre-Marie Pédrot2017-07-26 16:34:09 +0200
commitcfb181899cdd076fb7f2e061089ba76067e47ccc (patch)
treeca881dc0d5151a04387a76101d59f6b49542ffb6
parentb13693a39014d727787c003c6d445c3bb6f2aef6 (diff)
Fix typo in error message
-rw-r--r--src/tac2intern.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tac2intern.ml b/src/tac2intern.ml
index 5d443dbfcb..79e33f3a94 100644
--- a/src/tac2intern.ml
+++ b/src/tac2intern.ml
@@ -356,14 +356,14 @@ let unify ?loc env t1 t2 =
with CannotUnify (u1, u2) ->
let name = env_name env in
user_err ?loc (str "This expression has type " ++ pr_glbtype name t1 ++
- str " but an expression what expected of type " ++ pr_glbtype name t2)
+ str " but an expression was expected of type " ++ pr_glbtype name t2)
let unify_arrow ?loc env ft args =
let ft0 = ft in
let rec iter ft args is_fun = match kind env ft, args with
| t, [] -> t
| GTypArrow (t1, ft), (loc, t2) :: args ->
- let () = unify ~loc env t1 t2 in
+ let () = unify ~loc env t2 t1 in
iter ft args true
| GTypVar id, (_, t) :: args ->
let ft = GTypVar (fresh_id env) in