changeset 80634 | a90ab1ea6458 |
parent 74561 | 8e6c973003c8 |
child 80636 | 4041e7c8059d |
--- a/src/HOL/Library/code_lazy.ML Sun Aug 04 13:14:33 2024 +0200 +++ b/src/HOL/Library/code_lazy.ML Sun Aug 04 13:24:54 2024 +0200 @@ -543,7 +543,7 @@ val table = Laziness_Data.get thy fun num_consts_fun (_, T) = let - val s = body_type T |> dest_Type |> fst + val s = dest_Type_name (body_type T) in if Symtab.defined table s then Ctr_Sugar.ctr_sugar_of ctxt s |> the |> #ctrs |> length