From 62fb849cf9410ddc2d9f355570f4fb859f3044c3 Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Tue, 25 Mar 2014 18:29:28 +0100 Subject: Adapt universe polymorphic branch to new handling of futures for delayed proofs. --- library/global.ml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'library/global.ml') diff --git a/library/global.ml b/library/global.ml index 812178bbb..74a2a1c0e 100644 --- a/library/global.ml +++ b/library/global.ml @@ -172,10 +172,8 @@ let type_of_global_in_context env r = | VarRef id -> Environ.named_type id env, Univ.UContext.empty | ConstRef c -> let cb = Environ.lookup_constant c env in - let univs = - if cb.const_polymorphic then Future.force cb.const_universes - else Univ.UContext.empty - in Typeops.type_of_constant_type env cb.Declarations.const_type, univs + let univs = Declareops.universes_of_polymorphic_constant cb in + Typeops.type_of_constant_type env cb.Declarations.const_type, univs | IndRef ind -> let (mib, oib as specif) = Inductive.lookup_mind_specif env ind in let univs = -- cgit v1.2.3