src/HOL/Tools/Quotient/quotient_typ.ML
changeset 45278 7c6c8e950636
parent 44204 3cdc4176638c
child 45279 89a17197cb98
--- a/src/HOL/Tools/Quotient/quotient_typ.ML	Thu Oct 27 16:28:34 2011 +0200
+++ b/src/HOL/Tools/Quotient/quotient_typ.ML	Thu Oct 27 19:41:08 2011 +0200
@@ -225,7 +225,7 @@
     fun map_check_aux rty warns =
       case rty of
         Type (_, []) => warns
-      | Type (s, _) => if Quotient_Info.maps_defined thy s then warns else s::warns
+      | Type (s, _) => if is_some (Quotient_Info.maps_lookup thy s) then warns else s :: warns
       | _ => warns
 
     val warns = map_check_aux rty []