src/HOL/Tools/Nitpick/nitpick_hol.ML
changeset 47990 7a642e5c272c
parent 47909 5f1afeebafbc
child 48811 d1688612668d
--- a/src/HOL/Tools/Nitpick/nitpick_hol.ML	Thu May 24 17:42:47 2012 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick_hol.ML	Thu May 24 17:46:35 2012 +0200
@@ -1733,7 +1733,7 @@
       | NONE =>
         let
           fun def_inline_threshold () =
-            if is_boolean_type (nth_range_type (length ts) T) andalso
+            if is_boolean_type (body_type T) andalso
                total_consts <> SOME true then
               def_inline_threshold_for_booleans
             else