diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-29 22:48:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-29 22:48:54 +0200 |
commit | 60dc8274e9f8c6a20d54efebc7a8752fe062eead (patch) | |
tree | eff557ff1c6ff0338d5271c8c62d3b6516d5abf2 /src/eval.c | |
parent | 921ba529266c8dfc0809d41e1f084e26d25fffb1 (diff) |
patch 8.2.3249: Vim9: error for re-imported function with default argumentv8.2.3249
Problem: Vim9: error for re-imported function with default argument.
Solution: Do not check argument type if it is still unknown. (closes #8653)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 0d41f17805..769816d2cc 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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)) |