diff options
author | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-12-07 15:54:53 +0100 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-12-11 15:09:31 +0100 |
commit | a48cefa07907120c2270bf7a7689fa00a5adc167 (patch) | |
tree | 306009c16e1c91eafc9e937470a98d82997b5fb8 /vernac | |
parent | 2bb33cd402137f72861eda559c51014f48f6f633 (diff) |
Fix anomaly in [Type foo] command, + print uctx like Check.
Diffstat (limited to 'vernac')
-rw-r--r-- | vernac/vernacentries.ml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml index 63768d9b8..62b6396b4 100644 --- a/vernac/vernacentries.ml +++ b/vernac/vernacentries.ml @@ -1591,13 +1591,14 @@ let vernac_declare_reduction ~atts s r = let vernac_global_check c = let env = Global.env() in let sigma = Evd.from_env env in - let c,ctx = interp_constr env sigma c in + let c,uctx = interp_constr env sigma c in let senv = Global.safe_env() in - let cstrs = snd (UState.context_set ctx) in - let senv = Safe_typing.add_constraints cstrs senv in + let uctx = UState.context_set uctx in + let senv = Safe_typing.push_context_set false uctx senv in let j = Safe_typing.typing senv c in let env = Safe_typing.env_of_safe_env senv in - Feedback.msg_notice (print_safe_judgment env sigma j) + Feedback.msg_notice (print_safe_judgment env sigma j ++ + pr_universe_ctx_set sigma uctx) let get_nth_goal n = |