aboutsummaryrefslogtreecommitdiff
path: root/toplevel/himsg.ml
diff options
context:
space:
mode:
Diffstat (limited to 'toplevel/himsg.ml')
-rw-r--r--toplevel/himsg.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml
index 61830603ba..9680a0046b 100644
--- a/toplevel/himsg.ml
+++ b/toplevel/himsg.ml
@@ -183,9 +183,12 @@ let explain_unification_error env sigma p1 p2 = function
| MetaOccurInBody evk ->
spc () ++ str "(instance for " ++ quote (pr_existential_key evk) ++
strbrk " refers to a metavariable - please report your example)"
- | InstanceNotSameType evk ->
+ | InstanceNotSameType (evk,env,t,u) ->
spc () ++ str "(unable to find a well-typed instantiation for " ++
- quote (pr_existential_key evk) ++ str ")"
+ quote (pr_existential_key evk) ++ str ":" ++ spc () ++
+ str "cannot unify" ++
+ pr_lconstr_env env t ++ spc () ++ str "and" ++ spc () ++
+ pr_lconstr_env env u ++ str ")"
| UnifUnivInconsistency ->
spc () ++ str "(Universe inconsistency)"