aboutsummaryrefslogtreecommitdiff
path: root/pretyping/coercion.ml
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping/coercion.ml')
-rw-r--r--pretyping/coercion.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/pretyping/coercion.ml b/pretyping/coercion.ml
index 90884f3826..34cf69ac2a 100644
--- a/pretyping/coercion.ml
+++ b/pretyping/coercion.ml
@@ -76,8 +76,11 @@ let inh_app_fun env isevars j =
let inh_tosort_force env isevars j =
let t,i1 = class_of1 env !isevars j.uj_type in
- let p = lookup_path_to_sort_from i1 in
- apply_pcoercion env p j t
+ try
+ let p = lookup_path_to_sort_from i1 in
+ apply_pcoercion env p j t
+ with Not_found ->
+ j
let inh_tosort env isevars j =
let typ = whd_betadeltaiota env !isevars j.uj_type in