aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorHugo Herbelin2016-10-04 13:27:29 +0200
committerHugo Herbelin2016-10-04 13:50:56 +0200
commit9e8c57419b473fdb3f9fbb8251d1843ec0e6f884 (patch)
tree1244ce89baaff25f461b4aaa6785cf54989f5c0a /pretyping
parent6ffbe4308229feb63525506e6a1fa77a61d2895b (diff)
Quick fix to #4595 (making notations containing "ltac:" unused for printing).
Also getting rid of a global side-effect.
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/cases.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/pretyping/cases.ml b/pretyping/cases.ml
index e89c3ea719..7e33cc1d4a 100644
--- a/pretyping/cases.ml
+++ b/pretyping/cases.ml
@@ -2577,6 +2577,9 @@ let compile_cases loc style (typing_fun, evdref) tycon env (predopt, tomatchl, e
typing_function = typing_fun } in
let j = compile pb in
+
+ (* We coerce to the tycon (if an elim predicate was provided) *)
+ let j = inh_conv_coerce_to_tycon loc env myevdref j tycon in
evdref := !myevdref;
j in
@@ -2587,6 +2590,4 @@ let compile_cases loc style (typing_fun, evdref) tycon env (predopt, tomatchl, e
(* We check for unused patterns *)
List.iter (check_unused_pattern env) matx;
- (* We coerce to the tycon (if an elim predicate was provided) *)
- inh_conv_coerce_to_tycon loc env evdref j tycon
-
+ j