(PP.ppterm ~subst ~metasenv ~context so)
)));
(match arity1, R.whd ~subst ((name,C.Decl so)::context) ta with
- | C.Sort s1, C.Sort s2 ->
+ | C.Sort s1, (C.Sort s2 as arity2) ->
(match NCicEnvironment.allowed_sort_elimination s1 s2 with
| `Yes -> ()
| `UnitOnly ->
is_non_informative ~metasenv ~subst leftno constrty))
then
raise (TypeCheckerFailure (lazy
- ("Sort elimination not allowed"))))
+ ("Sort elimination not allowed: " ^
+ NCicPp.ppterm ~metasenv ~subst ~context arity1
+ ^ " towards "^
+ NCicPp.ppterm ~metasenv ~subst ~context arity2
+ ))))
| _ -> ())
| _,_ -> ()
in