diff options
| author | coqbot-app[bot] | 2020-12-09 18:01:37 +0000 |
|---|---|---|
| committer | GitHub | 2020-12-09 18:01:37 +0000 |
| commit | 4fbc04b0fe0b89edfe35438d01d3b664fc21e6f8 (patch) | |
| tree | 7ae1df67aecdccd63d86f251306e2707a07f8bc9 /kernel/typeops.ml | |
| parent | 9e0ca704fa8273a8337ff9e118d2d08620af8962 (diff) | |
| parent | e0a943d40c6749e602421ac89059e0d6caf57518 (diff) | |
Merge PR #13537: More efficient implementation for substitutions.
Reviewed-by: SkySkimmer
Ack-by: gares
Diffstat (limited to 'kernel/typeops.ml')
| -rw-r--r-- | kernel/typeops.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/typeops.ml b/kernel/typeops.ml index 85e24f87b7..802a32b0e7 100644 --- a/kernel/typeops.ml +++ b/kernel/typeops.ml @@ -198,7 +198,7 @@ let type_of_apply env func funt argsv argstv = let argt = argstv.(i) in let c1 = term_of_fconstr c1 in begin match conv_leq false env argt c1 with - | () -> apply_rec (i+1) (mk_clos (Esubst.subs_cons ([| inject arg |], e)) c2) + | () -> apply_rec (i+1) (mk_clos (Esubst.subs_cons (inject arg) e) c2) | exception NotConvertible -> error_cant_apply_bad_type env (i+1,c1,argt) |
