patch 9.1.1267: Vim9: no support for type list/dict<object<any>>
Problem: Vim9: no support for type list/dict<object<any>>
Solution: add proper support for t_object_any
(Yegappan Lakshmanan)
closes: #17025
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 125ba55..f2c6999 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -308,7 +308,7 @@
if (type->tt_type == VAR_OBJECT
|| type_any_or_unknown(type))
return OK;
- arg_type_mismatch(&t_object, type, context->arg_idx + 1);
+ arg_type_mismatch(&t_object_any, type, context->arg_idx + 1);
return FAIL;
}