diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-13 13:56:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-13 13:56:29 +0000 |
commit | 75e27d78f5370e7d2e0898326d9b080937e7b090 (patch) | |
tree | 410ddc3fcf6d8ebd84883143ef78d8923e75233b /src/errors.h | |
parent | cf6ad8ea8cff318877758b48d3786ab08251ab89 (diff) |
patch 8.2.4371: Vim9: can create a script variable from a legacy functionv8.2.4371
Problem: Vim9: can create a script variable from a legacy function.
Solution: Disallow creating a script variable from a function.
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index ef9e083461..c5a2649a5c 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3234,4 +3234,6 @@ EXTERN char e_function_name_must_start_with_capital_str[] INIT(= N_("E1267: Function name must start with a capital: %s")); EXTERN char e_cannot_use_s_colon_in_vim9_script_str[] INIT(= N_("E1268: Cannot use s: in Vim9 script: %s")); +EXTERN char e_cannot_create_vim9_script_variable_in_function_str[] + INIT(= N_("E1269: Cannot create a Vim9 script variable in a function: %s")); #endif |