src/Tools/subtyping.ML
changeset 80634 a90ab1ea6458
parent 74561 8e6c973003c8
child 81543 fa37ee54644c
--- a/src/Tools/subtyping.ML	Sun Aug 04 13:14:33 2024 +0200
+++ b/src/Tools/subtyping.ML	Sun Aug 04 13:24:54 2024 +0200
@@ -949,7 +949,7 @@
     val coercions = map (fst o the o Symreltab.lookup tab) path';
     val trans_co = singleton (Variable.polymorphic ctxt)
       (fold safe_app coercions (mk_identity dummyT));
-    val (Ts, Us) = apply2 (snd o Term.dest_Type) (Term.dest_funT (type_of trans_co));
+    val (Ts, Us) = apply2 dest_Type_args (Term.dest_funT (type_of trans_co));
   in
     (trans_co, ((Ts, Us), coercions))
   end;
@@ -967,10 +967,10 @@
     val (T1, T2) = Term.dest_funT (fastype_of t)
       handle TYPE _ => err_coercion ();
 
-    val (a, Ts) = Term.dest_Type T1
+    val (a, Ts) = dest_Type T1
       handle TYPE _ => err_coercion ();
 
-    val (b, Us) = Term.dest_Type T2
+    val (b, Us) = dest_Type T2
       handle TYPE _ => err_coercion ();
 
     fun coercion_data_update (tab, G, _) =