Mercurial > vim
comparison src/errors.h @ 24614:07b3d21a8b4b v8.2.2846
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Commit: https://github.com/vim/vim/commit/68db996b621b98066fb7ab7028ed5c6aaa3954a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 9 23:19:22 2021 +0200
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Problem: Vim9: "echo Func()" does not give an error for a function without
a return value.
Solution: Give an error. Be more specific about why a value is invalid.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 May 2021 23:30:05 +0200 |
parents | b3bd27751e09 |
children | 08eced3add83 |
comparison
equal
deleted
inserted
replaced
24613:2ccff0c26a2f | 24614:07b3d21a8b4b |
---|---|
29 INIT(= N_("E711: List value does not have enough items")); | 29 INIT(= N_("E711: List value does not have enough items")); |
30 EXTERN char e_cannot_slice_dictionary[] | 30 EXTERN char e_cannot_slice_dictionary[] |
31 INIT(= N_("E719: Cannot slice a Dictionary")); | 31 INIT(= N_("E719: Cannot slice a Dictionary")); |
32 EXTERN char e_assert_fails_second_arg[] | 32 EXTERN char e_assert_fails_second_arg[] |
33 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); | 33 INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings")); |
34 EXTERN char e_using_invalid_value_as_string_str[] | |
35 INIT(= N_("E908: using an invalid value as a String: %s")); | |
34 EXTERN char e_cannot_index_special_variable[] | 36 EXTERN char e_cannot_index_special_variable[] |
35 INIT(= N_("E909: Cannot index a special variable")); | 37 INIT(= N_("E909: Cannot index a special variable")); |
36 #endif | 38 #endif |
37 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] | 39 EXTERN char e_command_not_supported_in_vim9_script_missing_var_str[] |
38 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); | 40 INIT(= N_("E1100: Command not supported in Vim9 script (missing :var?): %s")); |
407 INIT(= N_("E1184: Blob not set")); | 409 INIT(= N_("E1184: Blob not set")); |
408 EXTERN char e_cannot_nest_redir[] | 410 EXTERN char e_cannot_nest_redir[] |
409 INIT(= N_("E1185: Cannot nest :redir")); | 411 INIT(= N_("E1185: Cannot nest :redir")); |
410 EXTERN char e_missing_redir_end[] | 412 EXTERN char e_missing_redir_end[] |
411 INIT(= N_("E1185: Missing :redir END")); | 413 INIT(= N_("E1185: Missing :redir END")); |
414 EXTERN char e_expression_does_not_result_in_value_str[] | |
415 INIT(= N_("E1186: Expression does not result in a value: %s")); |