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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user