patch 8.2.3415: Vim9: not all function argument types are properly checked
Problem: Vim9: Not all function argument types are properly checked.
Solution: Add and improve argument type checks. (Yegappan Lakshmanan,
closes #8839)
diff --git a/src/channel.c b/src/channel.c
index 9c23bf4..b46205e 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1309,7 +1309,7 @@
if (in_vim9script()
&& (check_for_string_arg(argvars, 0) == FAIL
- || check_for_dict_arg(argvars, 1) == FAIL))
+ || check_for_opt_dict_arg(argvars, 1) == FAIL))
return NULL;
address = tv_get_string(&argvars[0]);