fixed subtle name shadowing bug
authorblanchet
Tue, 05 Nov 2013 13:23:27 +0100
changeset 54268 807532d15d16
parent 54267 78e8a178b690
child 54269 dcdfec41a325
fixed subtle name shadowing bug
src/HOL/BNF/Tools/bnf_fp_n2m_sugar.ML
--- a/src/HOL/BNF/Tools/bnf_fp_n2m_sugar.ML	Tue Nov 05 12:40:58 2013 +0100
+++ b/src/HOL/BNF/Tools/bnf_fp_n2m_sugar.ML	Tue Nov 05 13:23:27 2013 +0100
@@ -339,8 +339,8 @@
         SOME U => (U, seen_lthy)
       | NONE =>
         (case T of
-          Type (s, Ts) =>
-          if exists_subtype_in Ts T then fold_map generalize_type Ts seen_lthy |>> curry Type s
+          Type (s, Ts') =>
+          if exists_subtype_in Ts T then fold_map generalize_type Ts' seen_lthy |>> curry Type s
           else generalize_simple_type T seen_lthy
         | _ => generalize_simple_type T seen_lthy));