aboutsummaryrefslogtreecommitdiff
path: root/kernel/type_errors.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-09-03 14:37:12 +0200
committerGaëtan Gilbert2018-09-03 14:37:12 +0200
commitc880e9e01d57eb4beca561e209839caa66d38742 (patch)
tree87752aad1c8aab7afece5d83f4d38175d0f2768c /kernel/type_errors.ml
parentbb5c4eee0807cd988d236d4538a2fa2f05ef0daf (diff)
parent6d998b5a0e6090b5c7d87d575016adc127b666d9 (diff)
Merge PR #891: Check universes are declared
Diffstat (limited to 'kernel/type_errors.ml')
-rw-r--r--kernel/type_errors.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/type_errors.ml b/kernel/type_errors.ml
index 1c323e3ea2..60293fe864 100644
--- a/kernel/type_errors.ml
+++ b/kernel/type_errors.ml
@@ -62,6 +62,7 @@ type ('constr, 'types) ptype_error =
| IllTypedRecBody of
int * Name.t array * ('constr, 'types) punsafe_judgment array * 'types array
| UnsatisfiedConstraints of Univ.Constraint.t
+ | UndeclaredUniverse of Univ.Level.t
type type_error = (constr, types) ptype_error
@@ -125,3 +126,6 @@ let error_elim_explain kp ki =
let error_unsatisfied_constraints env c =
raise (TypeError (env, UnsatisfiedConstraints c))
+
+let error_undeclared_universe env l =
+ raise (TypeError (env, UndeclaredUniverse l))