Corrected type calculation.
authorhaftmann
Thu, 14 Sep 2023 05:24:30 +0000
changeset 78666 2ca78c955c97
parent 78665 b0ddfa5b9ddc
child 78667 d900ff3f314a
Corrected type calculation.
src/Tools/Code/code_thingol.ML
--- a/src/Tools/Code/code_thingol.ML	Wed Sep 13 17:08:55 2023 +0000
+++ b/src/Tools/Code/code_thingol.ML	Thu Sep 14 05:24:30 2023 +0000
@@ -283,7 +283,7 @@
   let
     val given = length ts;
     val delta = wanted - given;
-    val (_, rty) = unfold_fun_n wanted range;
+    val rty = drop wanted dom `--> range;
   in
     if delta = 0 then
       (([], (ts, rty)), [])