aboutsummaryrefslogtreecommitdiff
path: root/kernel/indtypes.ml
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-06-17 17:55:00 +0200
committerMatthieu Sozeau2014-06-17 17:55:00 +0200
commitba4289e55b376074bd782f6dc376a76e7efaec11 (patch)
tree25deb7a225eaaece366ea29d982933816103297d /kernel/indtypes.ml
parent258cbd1d2619cc5916dd570b95050e37c06fba77 (diff)
Fix a destArity that does not exactly match isArity in presence of let-ins.
Diffstat (limited to 'kernel/indtypes.ml')
-rw-r--r--kernel/indtypes.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/indtypes.ml b/kernel/indtypes.ml
index 014bfba295..6c072d2d4d 100644
--- a/kernel/indtypes.ml
+++ b/kernel/indtypes.ml
@@ -226,7 +226,7 @@ let typecheck_inductive env ctx mie =
(* Arities (without params) are typed-checked here *)
let arity, expltype =
if isArity ind.mind_entry_arity then
- let (ctx,s) = destArity ind.mind_entry_arity in
+ let (ctx,s) = dest_arity env_params ind.mind_entry_arity in
match s with
| Type u when Univ.universe_level u = None ->
(** We have an algebraic universe as the conclusion of the arity,