Mercurial > vim
diff src/vim9type.c @ 33343:41b50abddeea v9.0.1935
patch 9.0.1935: Vim9: not consistent error messages
Commit: https://github.com/vim/vim/commit/7fe8f43f49f4fa6f024d0e0ea76d3df5b62a0879
Author: RestorerZ <restorer@mail2k.ru>
Date: Sun Sep 24 23:21:24 2023 +0200
patch 9.0.1935: Vim9: not consistent error messages
Problem: Vim9: not consistent error messages
Solution: Make error messages more consistent. Use "variable" for
(object/class) member
closes: #13155
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: RestorerZ <restorer@mail2k.ru>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Sep 2023 23:30:06 +0200 |
parents | def9fc5c92d1 |
children | bb99820510ef |
line wrap: on
line diff
--- a/src/vim9type.c +++ b/src/vim9type.c @@ -648,7 +648,7 @@ valid_declaration_type(type_T *type) { char *tofree = NULL; char *name = type_name(type, &tofree); - semsg(_(e_invalid_type_for_object_member_str), name); + semsg(_(e_invalid_type_for_object_variable_str), name); vim_free(tofree); return FALSE; } @@ -755,7 +755,7 @@ type_mismatch_where(type_T *expected, ty switch (where.wt_kind) { case WT_MEMBER: - semsg(_(e_member_str_type_mismatch_expected_str_but_got_str), + semsg(_(e_variable_str_type_mismatch_expected_str_but_got_str), where.wt_func_name, typename1, typename2); break; case WT_METHOD: