diff options
| author | herbelin | 2000-10-01 13:54:01 +0000 |
|---|---|---|
| committer | herbelin | 2000-10-01 13:54:01 +0000 |
| commit | ce0c127811d3481ddd8583834a246e15dcb8f967 (patch) | |
| tree | 4845546969dacf125b437c387a770c3813fe010a /kernel | |
| parent | 27a0d78c02d5c24d67246589964d189a61eb678a (diff) | |
Suppression de ensure_appl
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@631 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/inductive.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml index 33d15798a4..bbc7918dca 100644 --- a/kernel/inductive.ml +++ b/kernel/inductive.ml @@ -238,12 +238,13 @@ let get_constructor (IndFamily (mispec,params)) j = assert (j <= mis_nconstr mispec); let typi = mis_type_nf_mconstruct j mispec in let (args,ccl) = decompose_prod_assum (prod_applist typi params) in - let (_,vargs) = array_chop (mis_nparams mispec + 1) (destAppL (ensure_appl ccl)) in + let (_,allargs) = whd_stack ccl in + let (_,vargs) = list_chop (mis_nparams mispec) allargs in { cs_cstr = ith_constructor_of_inductive (mis_inductive mispec) j; cs_params = params; cs_nargs = rel_context_length args; cs_args = args; - cs_concl_realargs = vargs } + cs_concl_realargs = Array.of_list vargs } let get_constructors (IndFamily (mispec,params) as indf) = Array.init (mis_nconstr mispec) (fun j -> get_constructor indf (j+1)) |
