no cleverness for instance parameters
authorhaftmann
Tue, 25 Sep 2007 12:16:13 +0200
changeset 24701 f8bfd592a6dc
parent 24700 291665d063e4
child 24702 f875049a13a1
no cleverness for instance parameters
src/Pure/Isar/class.ML
--- a/src/Pure/Isar/class.ML	Tue Sep 25 12:16:12 2007 +0200
+++ b/src/Pure/Isar/class.ML	Tue Sep 25 12:16:13 2007 +0200
@@ -216,11 +216,11 @@
   let
     val ((lhs as Const (c, ty), args), rhs) =
       (apfst Term.strip_comb o Logic.dest_equals) prop;
-    fun add_inst' def ([], (Const (c_inst, ty))) =
+    fun (*add_inst' def ([], (Const (c_inst, ty))) =
           if forall (fn TFree _ => true | _ => false) (Sign.const_typargs thy (c_inst, ty))
           then add_inst (c, tyco) (c_inst, def)
           else add_inst_def (class, tyco) (c, ty)
-      | add_inst' _ t = add_inst_def (class, tyco) (c, ty);
+      |*) add_inst' _ t = add_inst_def (class, tyco) (c, ty);
   in
     thy
     |> PureThy.add_defs_i true [((name, prop), map (Attrib.attribute thy) atts)]