diff options
| author | herbelin | 2002-06-06 14:26:16 +0000 |
|---|---|---|
| committer | herbelin | 2002-06-06 14:26:16 +0000 |
| commit | 70d7094eace047922e3ea191180ba066917542f1 (patch) | |
| tree | d31e1fb5d61b0712d37b539135880c9c7b22539c | |
| parent | d14da289de0035552c9a62ca5036be642ca250db (diff) | |
Tentative de réparation d'un bug Omega: une variable de section qui après effacement ne peut être renommée pareille
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2763 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | tactics/tactics.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml index f154ef3723..12bb61ad3e 100644 --- a/tactics/tactics.ml +++ b/tactics/tactics.ml @@ -230,10 +230,13 @@ let unfold_constr = function (* Introduction tactics *) (*******************************************) +let is_section_variable id = + try let _ = Declare.find_section_variable id in true with Not_found -> false + let next_global_ident_from id avoid = let rec next_rec id = let id = next_ident_away_from id avoid in - if not (Declare.is_global id) then + if is_section_variable id || not (Declare.is_global id) then id else next_rec (lift_ident id) @@ -242,7 +245,7 @@ let next_global_ident_from id avoid = let next_global_ident_away id avoid = let id = next_ident_away id avoid in - if not (Declare.is_global id) then + if is_section_variable id || not (Declare.is_global id) then id else next_global_ident_from (lift_ident id) avoid |
