summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorh-east <h.east.727@gmail.com>2023-09-28 22:18:19 +0200
committerChristian Brabandt <cb@256bit.org>2023-09-28 22:18:19 +0200
commitdb38552dcdc7460459df8bf5cf02666256045308 (patch)
tree79c3631e1c83ad547356bea130ac9e247216dc87 /src/errors.h
parent03ca4002c1dcd34c4b17fe4a491b02d77ec2c887 (diff)
patch 9.0.1948: Vim9: object variable "this." should only be used in constructorv9.0.1948
Problem: Vim9: object variable "this." should only be used in constructor Solution: Disallow to this in normal object methods (other than constructors) closes: #13152 closes: #13212 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: h-east <h.east.727@gmail.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 7260c30cbf..baf36d5e4a 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3529,6 +3529,8 @@ EXTERN char e_public_keyword_not_supported_for_method[]
INIT(= N_("E1388: Public keyword not supported for a method"));
EXTERN char e_missing_name_after_implements[]
INIT(= N_("E1389: Missing name after implements"));
+EXTERN char e_cannot_use_an_object_variable_except_with_the_new_method_str[]
+ INIT(= N_("E1390: Cannot use an object variable \"this.%s\" except with the \"new\" method"));
#endif
EXTERN char e_cannot_mix_positional_and_non_positional_str[]
INIT(= N_("E1400: Cannot mix positional and non-positional arguments: %s"));
@@ -3544,4 +3546,4 @@ EXTERN char e_invalid_format_specifier_str[]
INIT(= N_("E1405: Invalid format specifier: %s"));
EXTERN char e_aptypes_is_null_nr_str[]
INIT(= "E1408: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");
-// E1390 - E1399 unused
+// E1391 - E1399 unused