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/unification.ml | |
| 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/unification.ml')
| -rw-r--r-- | pretyping/unification.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/unification.ml b/pretyping/unification.ml index 207a03d80f..ccfb508964 100644 --- a/pretyping/unification.ml +++ b/pretyping/unification.ml @@ -134,8 +134,8 @@ let abstract_list_all env evd typ c l = | Type_errors.TypeError (env',x) -> (* FIXME: plug back the typing information *) error_cannot_find_well_typed_abstraction env evd p l None - | Pretype_errors.PretypeError (env',evd,TypingError x) -> - error_cannot_find_well_typed_abstraction env evd p l (Some (env',x)) in + | Pretype_errors.PretypeError (env',evd,e) -> + error_cannot_find_well_typed_abstraction env evd p l (Some (env',e)) in evd,(p,typp) let set_occurrences_of_last_arg n = |
