diff options
| author | Gaëtan Gilbert | 2020-10-12 15:40:31 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-10-12 15:40:31 +0200 |
| commit | 34e1aeef7718dd3042ef22cd1ded9d9eb65cfd87 (patch) | |
| tree | 49226ece6375dcd398b3d77307d481e1113fc2a6 /pretyping/pretype_errors.mli | |
| parent | 9324cc58c4f12de6f03fd88acc405c2e6c93dbdb (diff) | |
Catch more errors in Unification.abstract_list_all
This improves the error message on the example for #13171, however we
may question whether there should be an error at all.
Diffstat (limited to 'pretyping/pretype_errors.mli')
| -rw-r--r-- | pretyping/pretype_errors.mli | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/pretype_errors.mli b/pretyping/pretype_errors.mli index 45997e9a66..714d68165e 100644 --- a/pretyping/pretype_errors.mli +++ b/pretyping/pretype_errors.mli @@ -54,7 +54,7 @@ type pretype_error = | CannotUnifyBindingType of constr * constr | CannotGeneralize of constr | NoOccurrenceFound of constr * Id.t option - | CannotFindWellTypedAbstraction of constr * constr list * (env * type_error) option + | CannotFindWellTypedAbstraction of constr * constr list * (env * pretype_error) option | WrongAbstractionType of Name.t * constr * types * types | AbstractionOverMeta of Name.t * Name.t | NonLinearUnification of Name.t * constr @@ -132,7 +132,7 @@ val error_cannot_unify : ?loc:Loc.t -> env -> Evd.evar_map -> val error_cannot_unify_local : env -> Evd.evar_map -> constr * constr * constr -> 'b val error_cannot_find_well_typed_abstraction : env -> Evd.evar_map -> - constr -> constr list -> (env * type_error) option -> 'b + constr -> constr list -> (env * pretype_error) option -> 'b val error_wrong_abstraction_type : env -> Evd.evar_map -> Name.t -> constr -> types -> types -> 'b |
