aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2021-02-17 13:21:24 +0100
committerPierre-Marie Pédrot2021-02-17 13:21:24 +0100
commitc55b5b8575f2f717d6d9c759996173e250dd1c75 (patch)
tree70f352f5b214c09a3557f314c25814a638ebe267 /pretyping
parentc6bc1cea49cb5a18142437325ecb6875514c22bb (diff)
parent925794c34d08752cee85362d1c2772559e89d2c9 (diff)
Merge PR #13734: Fix #13732: Implicit Type vs universes
Reviewed-by: ppedrot
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/detyping.ml8
1 files changed, 5 insertions, 3 deletions
diff --git a/pretyping/detyping.ml b/pretyping/detyping.ml
index 722a0a2048..c5f23482c7 100644
--- a/pretyping/detyping.ml
+++ b/pretyping/detyping.ml
@@ -744,9 +744,11 @@ let detype_level sigma l =
UNamed (detype_level_name sigma l)
let detype_instance sigma l =
- let l = EInstance.kind sigma l in
- if Univ.Instance.is_empty l then None
- else Some (List.map (detype_level sigma) (Array.to_list (Univ.Instance.to_array l)))
+ if not !print_universes then None
+ else
+ let l = EInstance.kind sigma l in
+ if Univ.Instance.is_empty l then None
+ else Some (List.map (detype_level sigma) (Array.to_list (Univ.Instance.to_array l)))
let delay (type a) (d : a delay) (f : a delay -> _ -> _ -> _ -> _ -> _ -> a glob_constr_r) flags env avoid sigma t : a glob_constr_g =
match d with