comparison src/errors.h @ 22860:53acb89ec9f2 v8.2.1977

patch 8.2.1977: Vim9: error for using a string in a condition is confusing Commit: https://github.com/vim/vim/commit/ea2d407f9c144bb634c59017944e4930ed7f80a2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 12 12:08:51 2020 +0100 patch 8.2.1977: Vim9: error for using a string in a condition is confusing Problem: Vim9: error for using a string in a condition is confusing. Solution: Give a more specific error. Also adjust the compile time type checking for || and &&.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 Nov 2020 12:15:04 +0100
parents 3e0f909ca1f2
children 6d50182e7e24
comparison
equal deleted inserted replaced
22859:757858b35433 22860:53acb89ec9f2
87 INIT(= N_("E1027: Missing return statement")); 87 INIT(= N_("E1027: Missing return statement"));
88 EXTERN char e_compiling_def_function_failed[] 88 EXTERN char e_compiling_def_function_failed[]
89 INIT(= N_("E1028: Compiling :def function failed")); 89 INIT(= N_("E1028: Compiling :def function failed"));
90 EXTERN char e_expected_str_but_got_str[] 90 EXTERN char e_expected_str_but_got_str[]
91 INIT(= N_("E1029: Expected %s but got %s")); 91 INIT(= N_("E1029: Expected %s but got %s"));
92 EXTERN char e_using_string_as_number[] 92 EXTERN char e_using_string_as_number_str[]
93 INIT(= N_("E1030: Using a String as a Number")); 93 INIT(= N_("E1030: Using a String as a Number: \"%s\""));
94 EXTERN char e_cannot_use_void_value[] 94 EXTERN char e_cannot_use_void_value[]
95 INIT(= N_("E1031: Cannot use void value")); 95 INIT(= N_("E1031: Cannot use void value"));
96 EXTERN char e_missing_catch_or_finally[] 96 EXTERN char e_missing_catch_or_finally[]
97 INIT(= N_("E1032: Missing :catch or :finally")); 97 INIT(= N_("E1032: Missing :catch or :finally"));
98 EXTERN char e_catch_unreachable_after_catch_all[] 98 EXTERN char e_catch_unreachable_after_catch_all[]
290 INIT(= N_("E1132: Missing function argument")); 290 INIT(= N_("E1132: Missing function argument"));
291 EXTERN char e_cannot_extend_null_dict[] 291 EXTERN char e_cannot_extend_null_dict[]
292 INIT(= N_("E1133: Cannot extend a null dict")); 292 INIT(= N_("E1133: Cannot extend a null dict"));
293 EXTERN char e_cannot_extend_null_list[] 293 EXTERN char e_cannot_extend_null_list[]
294 INIT(= N_("E1134: Cannot extend a null list")); 294 INIT(= N_("E1134: Cannot extend a null list"));
295 EXTERN char e_using_string_as_bool_str[]
296 INIT(= N_("E1135: Using a String as a Bool: \"%s\""));
295 #endif 297 #endif