summaryrefslogtreecommitdiff
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-16 17:33:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-16 17:33:35 +0200
commitcc673e746ab98566556ff964d7a76f2fb46d7f84 (patch)
tree52b14d7898a3208e8f2d8344cc8a36e4d2b8605e /src/errors.h
parent56acb0943ede35cd9d2f6667cde2442819ccbf59 (diff)
downloadvim-git-cc673e746ab98566556ff964d7a76f2fb46d7f84.tar.gz
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"v8.2.1466
Problem: Vim9: cannot index or slice a variable with type "any". Solution: Add runtime index and slice.
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/errors.h b/src/errors.h
index 0622042a8..60be6c17f 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -21,6 +21,10 @@ EXTERN char e_invalid_command[]
#ifdef FEAT_EVAL
EXTERN char e_invalid_command_str[]
INIT(= N_("E476: Invalid command: %s"));
+EXTERN char e_cannot_slice_dictionary[]
+ INIT(= N_("E719: cannot slice a Dictionary"));
+EXTERN char e_cannot_index_special_variable[]
+ INIT(= N_("E909: Cannot index a special variable"));
EXTERN char e_missing_let_str[]
INIT(= N_("E1100: Missing :let: %s"));
EXTERN char e_variable_not_found_str[]
@@ -69,9 +73,9 @@ EXTERN char e_const_requires_a_value[]
INIT(= N_("E1021: const requires a value"));
EXTERN char e_type_or_initialization_required[]
INIT(= N_("E1022: type or initialization required"));
-EXTERN char e_cannot_slice_dictionary[]
- INIT(= N_("E1023: cannot slice a dictionary"));
-// E1024 unused
+// E1023 unused
+EXTERN char e_using_number_as_string[]
+ INIT(= N_("E1024: Using a Number as a String"));
EXTERN char e_using_rcurly_outside_if_block_scope[]
INIT(= N_("E1025: using } outside of a block scope"));
EXTERN char e_missing_rcurly[]
@@ -146,7 +150,8 @@ EXTERN char e_expected_dot_after_name_str[]
INIT(= N_("E1060: expected dot after name: %s"));
EXTERN char e_cannot_find_function_str[]
INIT(= N_("E1061: Cannot find function %s"));
-// E1062 unused
+EXTERN char e_cannot_index_number[]
+ INIT(= N_("E1062: Cannot index a Number"));
EXTERN char e_type_mismatch_for_v_variable[]
INIT(= N_("E1063: type mismatch for v: variable"));
// E1064 unused