summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-23 22:12:02 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-23 22:12:02 +0000
commitdea5ab0fc5bb51105078d5349f987496b1aa8d6f (patch)
tree9effcbd78f12bdfe98b081b3507dd08c5843ec9a /src/errors.h
parentfa02616718103be3f9e13e26d57905d4eddf836d (diff)
downloadvim-git-dea5ab0fc5bb51105078d5349f987496b1aa8d6f.tar.gz
patch 8.2.4460: Vim9: wrong error for defining dict functionv8.2.4460
Problem: Vim9: wrong error for defining dict function. Solution: Explicitly check for trying to define a dict function. (closes 9827)
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/errors.h b/src/errors.h
index 5f2685ab3..72c0d1284 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3010,7 +3010,8 @@ EXTERN char e_variable_arguments_type_must_be_list_str[]
INIT(= N_("E1180: Variable arguments type must be a list: %s"));
EXTERN char e_cannot_use_underscore_here[]
INIT(= N_("E1181: Cannot use an underscore here"));
-// E1182 unused
+EXTERN char e_cannot_define_dict_func_in_vim9_script_str[]
+ INIT(= N_("E1182: Cannot define a dict function in Vim9 script: %s"));
EXTERN char e_cannot_use_range_with_assignment_operator_str[]
INIT(= N_("E1183: Cannot use a range with an assignment operator: %s"));
#endif