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/globals.h b/src/globals.h
index 7e65af3..b902e03 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -540,8 +540,8 @@
#define t_super (static_types[84])
#define t_const_super (static_types[85])
-#define t_object (static_types[86])
-#define t_const_object (static_types[87])
+#define t_object_any (static_types[86])
+#define t_const_object_any (static_types[87])
#define t_class (static_types[88])
#define t_const_class (static_types[89])
@@ -731,7 +731,7 @@
{VAR_CLASS, 0, 0, TTFLAG_STATIC, &t_bool, NULL, NULL},
{VAR_CLASS, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, &t_bool, NULL, NULL},
- // 86: t_object
+ // 86: t_object_any
{VAR_OBJECT, 0, 0, TTFLAG_STATIC, NULL, NULL, NULL},
{VAR_OBJECT, 0, 0, TTFLAG_STATIC|TTFLAG_CONST, NULL, NULL, NULL},