diff options
| author | Hugo Herbelin | 2018-12-05 19:46:26 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2019-01-06 19:45:57 +0100 |
| commit | 30d0b1052b6351a539558ff1fe16e4f8578c03ba (patch) | |
| tree | eeade7a8d44d68c2d285536ec7ba92720831dfe4 /pretyping/pretype_errors.ml | |
| parent | 9d6188637570d6fa62c74aecc95212821bcb22df (diff) | |
Fixes #4633: more explicit error message when referring to a generated evar.
Diffstat (limited to 'pretyping/pretype_errors.ml')
| -rw-r--r-- | pretyping/pretype_errors.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pretyping/pretype_errors.ml b/pretyping/pretype_errors.ml index 01b0d96f98..dc6607557d 100644 --- a/pretyping/pretype_errors.ml +++ b/pretyping/pretype_errors.ml @@ -53,6 +53,7 @@ type pretype_error = | NonLinearUnification of Name.t * constr (* Pretyping *) | VarNotFound of Id.t + | EvarNotFound of Id.t | UnexpectedType of constr * constr | NotProduct of constr | TypingError of type_error @@ -167,6 +168,9 @@ let error_not_product ?loc env sigma c = let error_var_not_found ?loc env sigma s = raise_pretype_error ?loc (env, sigma, VarNotFound s) +let error_evar_not_found ?loc env sigma id = + raise_pretype_error ?loc (env, sigma, EvarNotFound id) + (*s Typeclass errors *) let unsatisfiable_constraints env evd ev comp = |
