diff options
| author | Matthieu Sozeau | 2015-12-31 19:32:31 +0100 |
|---|---|---|
| committer | Matthieu Sozeau | 2015-12-31 19:33:49 +0100 |
| commit | a1d6232019dd903419b0ac10819dfde6759c45d1 (patch) | |
| tree | df4756ea58481a7046808d8bc74a29e863e5d0d6 /kernel | |
| parent | d3bc575c498ae09ad1003405d17a9d5cfbcf3cbf (diff) | |
Fix bug #4456, anomaly in handle-side effects
The side-effects can contain universe declarations needed to typecheck
later proofs, which weren't added to the env used to typecheck them.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/term_typing.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/term_typing.ml b/kernel/term_typing.ml index a566028d40..74c2e7da37 100644 --- a/kernel/term_typing.ml +++ b/kernel/term_typing.ml @@ -424,7 +424,10 @@ let export_side_effects mb env ce = let trusted = check_signatures mb signatures in let push_seff env = function | kn, cb, `Nothing, _ -> - Environ.add_constant kn cb env + let env = Environ.add_constant kn cb env in + if not cb.const_polymorphic then + Environ.push_context ~strict:true cb.const_universes env + else env | kn, cb, `Opaque(_, ctx), _ -> let env = Environ.add_constant kn cb env in Environ.push_context_set |
