diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-13 18:09:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-13 18:09:19 +0200 |
commit | c82a5b5da5eab15bc35115545b639fb590272ad7 (patch) | |
tree | 142b39935a504932df6e91b6d20757b3319edbda /src/globals.h | |
parent | 142499de3352e1edb2ab6cc2bf3b82441c8e5f4f (diff) |
patch 8.2.0972: Vim9 script variable declarations need a typev8.2.0972
Problem: Vim9 script variable declarations need a type.
Solution: Make "let var: type" declare a script-local variable.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index e5dcb7b65a..f0b75e5202 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1785,6 +1785,8 @@ EXTERN char e_white_after[] INIT(= N_("E1069: white space required after '%s'")) EXTERN char e_no_white_before[] INIT(= N_("E1068: No white space allowed before '%s'")); EXTERN char e_lock_unlock[] INIT(= N_("E940: Cannot lock or unlock variable %s")); +EXTERN char e_const_req_value[] INIT(= N_("E1021: const requires a value")); +EXTERN char e_type_req[] INIT(= N_("E1022: type or initialization required")); #endif #if defined(FEAT_GUI) || defined(FEAT_TERMGUICOLORS) EXTERN char e_alloc_color[] INIT(= N_("E254: Cannot allocate color %s")); |