--- a/src/HOL/Tools/Predicate_Compile/predicate_compile_aux.ML Thu Jun 09 15:38:49 2011 +0200
+++ b/src/HOL/Tools/Predicate_Compile/predicate_compile_aux.ML Thu Jun 09 16:34:49 2011 +0200
@@ -906,7 +906,7 @@
val Type ("fun", [T, T']) = fastype_of comb;
val (Const (case_name, _), fs) = strip_comb comb
val used = Term.add_tfree_names comb []
- val U = TFree (Name.variant used "'t", HOLogic.typeS)
+ val U = TFree (singleton (Name.variant_list used) "'t", HOLogic.typeS)
val x = Free ("x", T)
val f = Free ("f", T' --> U)
fun apply_f f' =