summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2023-08-31 18:10:46 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-31 18:10:46 +0200
commiteb91e24d5eca99ad902924911e78f292e9ca0971 (patch)
treeee3ea5c8c651720aae83ae5fdf115bc33a79014a /src/errors.h
parentac2d8815ae7a93c54b07cba76475cfb3f26a3ac6 (diff)
patch 9.0.1829: Vim9 missing access-checks for private varsv9.0.1829
Problem: Vim9 missing access-checks for private vars Solution: Use the proper check for private/readonly variable. Access level for a member cannot be changed in a class implementing an interface. Update the code indentation closes: #12978 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com> Co-authored-by: Ernie Rael <errael@raelity.com>
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/errors.h b/src/errors.h
index 24977c4ba7..1662043998 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3486,6 +3486,8 @@ EXTERN char e_cannot_use_a_return_type_with_new[]
INIT(= N_("E1365: Cannot use a return type with the \"new\" function"));
EXTERN char e_cannot_access_private_method_str[]
INIT(= N_("E1366: Cannot access private method: %s"));
+EXTERN char e_member_str_of_interface_str_has_different_access[]
+ INIT(= N_("E1367: Access level of member \"%s\" of interface \"%s\" is different"));
EXTERN char e_static_cannot_be_followed_by_this[]
INIT(= N_("E1368: Static cannot be followed by \"this\" in a member name"));
@@ -3510,4 +3512,4 @@ EXTERN char e_member_str_type_mismatch_expected_str_but_got_str[]
EXTERN char e_method_str_type_mismatch_expected_str_but_got_str[]
INIT(= N_("E1407: Member \"%s\": type mismatch, expected %s but got %s"));
-// E1367, E1371 - E1399 unused
+// E1371 - E1399 unused