aboutsummaryrefslogtreecommitdiff
path: root/etc/utils
diff options
context:
space:
mode:
authorCyril Cohen2019-10-07 11:09:12 +0200
committerGitHub2019-10-07 11:09:12 +0200
commit5d963c6ae75cce78b7107180d57b456e37b00728 (patch)
treed40a32192107d82ddf0d3886883dc7e67d7ad01a /etc/utils
parenta28b0de6c58e6bc6b82ee7d06ca473cd66c34278 (diff)
parenta899bb7ef1d6a2c35b1b9a646dfeae332972f5f6 (diff)
Merge pull request #384 from pi8027/hierarchy
Fix and improve the test suite and Makefile
Diffstat (limited to 'etc/utils')
-rw-r--r--etc/utils/hierarchy.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/utils/hierarchy.ml b/etc/utils/hierarchy.ml
index 33d598a..2bb7f6f 100644
--- a/etc/utils/hierarchy.ml
+++ b/etc/utils/hierarchy.ml
@@ -159,7 +159,13 @@ Tactic Notation "check_join"
_ (_ ?Tjoin) => Tjoin | _ ?Tjoin => Tjoin | ?Tjoin => Tjoin
end
in
- is_evar Tjoin;
+ match tt with
+ | _ => is_evar Tjoin
+ | _ =>
+ let Tjoin := eval simpl in (Tjoin : Type) in
+ fail "The join of" t1 "and" t2 "is a concrete type" Tjoin
+ "but is expected to be" tjoin
+ end;
let tjoin' := type of Tjoin in
lazymatch tjoin' with
| tjoin => idtac