aboutsummaryrefslogtreecommitdiff
path: root/checker/inductive.ml
diff options
context:
space:
mode:
Diffstat (limited to 'checker/inductive.ml')
-rw-r--r--checker/inductive.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/checker/inductive.ml b/checker/inductive.ml
index 40a9bc316f..e6a24f705d 100644
--- a/checker/inductive.ml
+++ b/checker/inductive.ml
@@ -352,7 +352,8 @@ let check_case_info env indsp ci =
if
not (eq_ind indsp ci.ci_ind) ||
(mib.mind_nparams <> ci.ci_npar) ||
- (mip.mind_consnrealdecls <> ci.ci_cstr_ndecls)
+ (mip.mind_consnrealdecls <> ci.ci_cstr_ndecls) ||
+ (mip.mind_consnrealargs <> ci.ci_cstr_nargs)
then raise (TypeError(env,WrongCaseInfo(indsp,ci)))
(************************************************************************)