author | wenzelm |
Wed, 10 Jan 2024 13:18:28 +0100 | |
changeset 79466 | ec3dc36551ab |
parent 79465 | 4f862ca9a60a |
child 79467 | aeb775b438c6 |
--- a/src/Pure/consts.ML Wed Jan 10 13:16:48 2024 +0100 +++ b/src/Pure/consts.ML Wed Jan 10 13:18:28 2024 +0100 @@ -218,9 +218,9 @@ fun term (Const (c, T)) = let val (T', same) = Same.commit_id typ T; - val decl = the_decl consts c; + val U = type_scheme consts c; in - if not (Type.raw_instance (T', #T decl)) then err_const (c, T) + if not (Type.raw_instance (T', U)) then err_const (c, T) else if same then raise Same.SAME else Const (c, T') end | term (Free (x, T)) = Free (x, typ T)