diff options
author | 1999-12-13 13:42:04 +0000 | |
---|---|---|
committer | 1999-12-13 13:42:04 +0000 | |
commit | decb8c16274487ce3cac1e7d5de529b46b6d68e3 (patch) | |
tree | 02a41980403e4c3fbeab8259a95ea14ba1b80e65 /pretyping/coercion.ml | |
parent | 7dfacfe208a9fa5ad5f7669537c54609b4adf51e (diff) |
- méthode load sur les Hints
- CAST pris en compte dans Astterm
- Coercin.lookup_path_to_sort_from protégé par un try/with
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@248 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/coercion.ml')
-rw-r--r-- | pretyping/coercion.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pretyping/coercion.ml b/pretyping/coercion.ml index 90884f382..34cf69ac2 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 |