src/Tools/quickcheck.ML
changeset 38107 3a46cebd7983
parent 37974 d9549f9da779
child 38111 77f56abf158b
--- a/src/Tools/quickcheck.ML	Fri Jul 30 15:03:42 2010 +0200
+++ b/src/Tools/quickcheck.ML	Sat Jul 31 21:14:20 2010 +0200
@@ -228,7 +228,7 @@
     val proto_goal = Logic.list_implies (map Thm.term_of assms, subst_bounds (frees, strip gi));
     val check_goals = case some_locale
      of NONE => [proto_goal]
-      | SOME locale => map (fn phi => Morphism.term phi proto_goal) (Locale.get_registrations thy locale);
+      | SOME locale => map (fn (_, phi) => Morphism.term phi proto_goal) (Locale.registrations_of_locale (Context.Theory thy) (*FIXME*) locale);
     val inst_goals = maps (fn check_goal => map (fn T =>
       Term ((Object_Logic.atomize_term thy o monomorphic_term thy insts T) check_goal)
         handle WELLSORTED s => Wellsorted_Error s) default_Ts) check_goals