diff options
| author | msozeau | 2009-06-17 16:32:45 +0000 |
|---|---|---|
| committer | msozeau | 2009-06-17 16:32:45 +0000 |
| commit | 6fd41fb09f6d809e831f2d5904f4c4b4ff2aa253 (patch) | |
| tree | 8ac9719cc2f308673ed78789aa9f3c9e80aded91 | |
| parent | d1aee3a64abd6399d18e940133069a57a490a45d (diff) | |
Fallback on not using [fix_proto] if the right imports aren't there, the
tactics that use it won't be in scope either.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12193 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | plugins/subtac/subtac_command.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/subtac/subtac_command.ml b/plugins/subtac/subtac_command.ml index a408d44ca4..eb135139c4 100644 --- a/plugins/subtac/subtac_command.ml +++ b/plugins/subtac/subtac_command.ml @@ -404,7 +404,10 @@ let interp_recursive fixkind l boxed = let rec_sign = List.fold_left2 (fun env' id t -> let sort = Retyping.get_type_of env !evdref t in - let fixprot = mkApp (Lazy.force Subtac_utils.fix_proto, [|sort; t|]) in + let fixprot = + try mkApp (Lazy.force Subtac_utils.fix_proto, [|sort; t|]) + with e -> t + in (id,None,fixprot) :: env') [] fixnames fixtypes in |
