diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2000-03-17 18:52:27 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2000-03-17 18:52:27 +0000 |
commit | ff9a59ac99ea7a58c2be0a96a6b6b1482a592b2a (patch) | |
tree | e0b338bf2df61e336e1e2ff2c08c9ff6f3077e93 /kernel/typeops.ml | |
parent | c8dffbbbbf9f3a0bfbf837565359c31cbb52a8d7 (diff) |
Un cast inutile
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@321 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/typeops.ml')
-rw-r--r-- | kernel/typeops.ml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/typeops.ml b/kernel/typeops.ml index f546c1081..242641fef 100644 --- a/kernel/typeops.ml +++ b/kernel/typeops.ml @@ -244,15 +244,11 @@ let is_correct_arity env sigma kelim (c,p) = in srec -let cast_instantiate_arity mis = - let tty = instantiate_arity mis in - DOP2 (Cast, tty.body, DOP0 (Sort tty.typ)) - let find_case_dep_nparams env sigma (c,p) (mind,largs) typP = let mis = lookup_mind_specif mind env in let nparams = mis_nparams mis and kelim = mis_kelim mis - and t = cast_instantiate_arity mis in + and t = body_of_type (instantiate_arity mis) in let (globargs,la) = list_chop nparams largs in let glob_t = hnf_prod_applist env sigma "find_elim_boolean" t globargs in let arity = applist(mkMutInd mind,globargs) in |