src/HOL/Tools/inductive_package.ML
changeset 12494 58848edad3c4
parent 12400 f12f95e216e0
child 12527 d6c91bc3e49c
--- a/src/HOL/Tools/inductive_package.ML	Fri Dec 14 11:50:19 2001 +0100
+++ b/src/HOL/Tools/inductive_package.ML	Fri Dec 14 11:50:38 2001 +0100
@@ -182,7 +182,7 @@
     val add_term_consts_2 =
       foldl_aterms (fn (cs, Const c) => c ins cs | (cs, _) => cs);
     fun varify (t, (i, ts)) =
-      let val t' = map_term_types (incr_tvar (i + 1)) (Type.varify (t, []))
+      let val t' = map_term_types (incr_tvar (i + 1)) (#1 (Type.varify (t, [])))
       in (maxidx_of_term t', t'::ts) end;
     val (i, cs') = foldr varify (cs, (~1, []));
     val (i', intr_ts') = foldr varify (intr_ts, (i, []));