diff options
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 68d301eb46..e6d7613b00 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) |
