0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3249: Vim9: error for re-imported function with default argument

Problem:    Vim9: error for re-imported function with default argument.
Solution:   Do not check argument type if it is still unknown. (closes #8653)
This commit is contained in:
Bram Moolenaar
2021-07-29 22:48:54 +02:00
parent 921ba52926
commit 60dc8274e9
8 changed files with 26 additions and 10 deletions

View File

@@ -3359,7 +3359,7 @@ eval7t(
{
type_T *actual = typval2type(rettv, get_copyID(), &type_list, TRUE);
if (!equal_type(want_type, actual))
if (!equal_type(want_type, actual, 0))
{
if (want_type == &t_bool && actual != &t_bool
&& (actual->tt_flags & TTFLAG_BOOL_OK))