diff options
| author | letouzey | 2011-02-12 21:20:07 +0000 |
|---|---|---|
| committer | letouzey | 2011-02-12 21:20:07 +0000 |
| commit | 77b0b252f3ce600e1c70e613af878e74439a585b (patch) | |
| tree | e2f936b9e53922c082c71da0b0569bafaf6830b0 /interp/notation.ml | |
| parent | 889c0bbb3762f3c85663273e58a46815a9d1f8f5 (diff) | |
fix last commit about modules (subst_cl_typ may raise Not_found)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13841 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp/notation.ml')
| -rw-r--r-- | interp/notation.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interp/notation.ml b/interp/notation.ml index f0cdc49cda..0628e72297 100644 --- a/interp/notation.ml +++ b/interp/notation.ml @@ -493,7 +493,9 @@ let cache_arguments_scope o = let subst_arguments_scope (subst,(req,r,scl,cls)) = let r' = fst (subst_global subst r) in - let cls' = list_smartmap (Option.smartmap (subst_cl_typ subst)) cls in + let subst_cl cl = + try Option.smartmap (subst_cl_typ subst) cl with Not_found -> None in + let cls' = list_smartmap subst_cl cls in let scl' = merge_scope (List.map find_class_scope_opt cls') scl in let scl'' = List.map (Option.map Declaremods.subst_scope) scl' in (ArgsScopeNoDischarge,r',scl'',cls') |
