From a749a42ed25534c88c636e5ab6603f1f97b857a4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 12 Feb 2022 19:52:25 +0000 Subject: patch 8.2.4360: Vim9: allowing use of "s:" leads to inconsistencies Problem: Vim9: allowing use of "s:" leads to inconsistencies. Solution: Disallow using "s:" in Vim9 script at the script level. --- src/vim9compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vim9compile.c') diff --git a/src/vim9compile.c b/src/vim9compile.c index 265ea665b..3a70f7a0f 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1394,7 +1394,7 @@ compile_lhs( if (is_decl) { if (script_namespace) - semsg(_(e_cannot_declare_script_variable_in_function), + semsg(_(e_cannot_declare_script_variable_in_function_str), lhs->lhs_name); else semsg(_(e_variable_already_declared_in_script_str), -- cgit v1.2.1