diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-10-29 20:11:08 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-10-29 20:11:08 +0000 |
commit | dfe97724fb6034fc06b3ef693f6a3ed94733adbc (patch) | |
tree | 673d36afb27326fe8bd5a5165203a8199405833d /kernel/cooking.ml | |
parent | 631769875f5a7e099cf814ac7b1aaab624f40a9d (diff) |
Compatibilité du polymorphisme de constantes avec les sections.
Amélioration affichage des univers. Réparation de petits oublis du premier
commit. Essai d'une nouvelle stratégie : si le type d'une constante
est mentionné explicitement, la constante est monomorphe dans Type.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9314 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/cooking.ml')
-rw-r--r-- | kernel/cooking.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cooking.ml b/kernel/cooking.ml index 68d301eb4..e6d7613b0 100644 --- a/kernel/cooking.ml +++ b/kernel/cooking.ml @@ -16,6 +16,7 @@ open Sign open Declarations open Environ open Reduction +open Term_typing (*s Cooking the constants. *) @@ -129,7 +130,6 @@ let cook_constant env r = | PolymorphicArity (ctx,s) -> let t = mkArity (ctx,Type s.poly_level) in let typ = abstract_constant_type (expmod_constr r.d_modlist t) hyps in - let ctx,_ = dest_prod env typ in - PolymorphicArity (ctx,s) in + Typeops.make_polymorphic_if_arity env typ in let boxed = Cemitcodes.is_boxed cb.const_body_code in (body, typ, cb.const_constraints, cb.const_opaque, boxed) |