summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-22 15:06:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-22 15:06:35 +0200
commitd70840ed68296c1144d743e6335003c81c558c24 (patch)
tree2fe663bae5737733924e71796559725f5be472ad /src/errors.h
parent1b04ce2d400fda97410a961288c496bd8f445a9c (diff)
patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as boolv8.2.1506
Problem: Vim9: no error when using a number other than 0 or 1 as bool. Solution: Check the number is 0 or 1.
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 a49aa738d1..ffcbdefa3a 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -73,7 +73,8 @@ 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"));
-// E1023 unused
+EXTERN char e_using_number_as_bool_nr[]
+ INIT(= N_("E1023: Using a Number as a Bool: %d"));
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[]