src/HOL/Tools/BNF/bnf_fp_rec_sugar_util.ML
changeset 67313 a2d7c0987f19
parent 64705 7596b0736ab9
child 69593 3dda49e08b9d
--- a/src/HOL/Tools/BNF/bnf_fp_rec_sugar_util.ML	Mon Jan 01 23:07:24 2018 +0100
+++ b/src/HOL/Tools/BNF/bnf_fp_rec_sugar_util.ML	Tue Jan 02 13:16:32 2018 +0100
@@ -172,9 +172,8 @@
   error_at ctxt ats ("Unexpected corecursive call in " ^ quote (Syntax.string_of_term ctxt t));
 fun unsupported_case_around_corec_call ctxt ats t =
   error_at ctxt ats ("Unsupported corecursive call under case expression " ^
-    quote (Syntax.string_of_term ctxt t) ^ "\n(Define " ^
-    quote (Syntax.string_of_typ ctxt (domain_type (fastype_of t))) ^
-    " with discriminators and selectors to circumvent this limitation)");
+    quote (Syntax.string_of_term ctxt t) ^
+    "\n(Define datatype with discriminators and selectors to circumvent this limitation)");
 
 fun no_equation_for_ctr_warning ctxt ats ctr =
   warning_at ctxt ats ("No equation for constructor " ^ quote (Syntax.string_of_term ctxt ctr));