--- a/src/Pure/Isar/theory_target.ML Thu Mar 05 10:53:49 2009 +0100
+++ b/src/Pure/Isar/theory_target.ML Thu Mar 05 10:54:03 2009 +0100
@@ -188,7 +188,7 @@
val arg = (b', Term.close_schematic_term rhs');
val similar_body = Type.similar_types (rhs, rhs');
(* FIXME workaround based on educated guess *)
- val (prefix', _, _) = Binding.dest b';
+ val prefix' = Binding.prefix_of b';
val class_global = Binding.name_of b = Binding.name_of b'
andalso not (null prefix')
andalso (fst o snd o split_last) prefix' = Class_Target.class_prefix target;