aboutsummaryrefslogtreecommitdiff
path: root/pretyping/inductiveops.ml
diff options
context:
space:
mode:
Diffstat (limited to 'pretyping/inductiveops.ml')
-rw-r--r--pretyping/inductiveops.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/inductiveops.ml b/pretyping/inductiveops.ml
index 483b7cfd20..f14f219229 100644
--- a/pretyping/inductiveops.ml
+++ b/pretyping/inductiveops.ml
@@ -49,14 +49,14 @@ let mkAppliedInd (IndType ((ind,params), realargs)) =
applist (mkInd ind,params@realargs)
+(* Does not consider imbricated or mutually recursive types *)
let mis_is_recursive_subset listind rarg =
let rec one_is_rec rvec =
List.exists
(fun ra ->
match dest_recarg ra with
| Mrec i -> List.mem i listind
- | Imbr _ -> array_exists one_is_rec (dest_subterms ra)
- | Norec -> false) rvec
+ | _ -> false) rvec
in
array_exists one_is_rec (dest_subterms rarg)