summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorGianmaria Bajo <mg1979.git@gmail.com>2023-08-29 22:26:30 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-29 22:29:03 +0200
commit4b9777a1dfc10bd2634404cb039a0df539549c93 (patch)
tree24e52b61874ee3cce35f4ad46a691acc007c3bdc /src/errors.h
parent2ac708b548660b232a32c52d89bde3d8596646c0 (diff)
patch 9.0.1821: Vim9 constructors are always staticv9.0.1821
Problem: Vim9 constructors are always static Solution: make the "static" keyword an error closes: #12945 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Gianmaria Bajo <mg1979.git@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 bf994333e8..1ea24600b6 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3493,6 +3493,8 @@ EXTERN char e_static_cannot_be_followed_by_this[]
INIT(= N_("E1368: Static cannot be followed by \"this\" in a member name"));
EXTERN char e_duplicate_member_str[]
INIT(= N_("E1369: Duplicate member: %s"));
+EXTERN char e_cannot_define_new_function_as_static[]
+ INIT(= N_("E1370: Cannot define a \"new\" function as static"));
EXTERN char e_cannot_mix_positional_and_non_positional_str[]
INIT(= N_("E1400: Cannot mix positional and non-positional arguments: %s"));
EXTERN char e_fmt_arg_nr_unused_str[]
@@ -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"));
-// E1368 - E1399 unused
+// E1371 - E1399 unused