From 1c5ddd65b4f66c4d37bd9da0facb229bbcea22eb Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 13 Jul 2017 22:35:00 +0100 Subject: Rudimentary support for parametric polymorphic types --- src/checker.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/checker.cpp') diff --git a/src/checker.cpp b/src/checker.cpp index d7882414a..1cbf5db40 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -301,6 +301,7 @@ struct CheckerInfo { Map untyped; // Key: AstNode * | Expression -> ExprInfo Map implicits; // Key: AstNode * Map > gen_procs; // Key: AstNode * | Identifier -> Entity + Map > gen_types; // Key: Type * Map entities; // Key: Entity * Map foreigns; // Key: String Map files; // Key: String (full path) @@ -742,6 +743,7 @@ void init_checker_info(CheckerInfo *i) { map_init(&i->foreigns, a); map_init(&i->implicits, a); map_init(&i->gen_procs, a); + map_init(&i->gen_types, a); map_init(&i->type_info_map, a); map_init(&i->files, a); i->type_info_count = 0; @@ -758,6 +760,7 @@ void destroy_checker_info(CheckerInfo *i) { map_destroy(&i->foreigns); map_destroy(&i->implicits); map_destroy(&i->gen_procs); + map_destroy(&i->gen_types); map_destroy(&i->type_info_map); map_destroy(&i->files); } -- cgit v1.2.3