We are working! POLYMORPHS There was an error where we have to reconstruct exact
typespec from type. This means we will probably have problems with namespaces!!
This commit is contained in:
@@ -363,6 +363,7 @@ enum {
|
||||
AST_TYPE_POLYMORPH = 1 << 16,
|
||||
AST_POLYMORPH = AST_IDENT_POLYMORPH | AST_TYPE_POLYMORPH,
|
||||
AST_PARENT_POLYMORPH = 1 << 17,
|
||||
AST_POLYMORPH_INSTANCE = 1 << 18,
|
||||
|
||||
AST_TYPESPEC = 1 << 18,
|
||||
};
|
||||
@@ -614,6 +615,7 @@ struct Ast_Decl : Ast {
|
||||
Ast_Operator_Info *overload_op_info;
|
||||
|
||||
uint64_t polymorph_hash;
|
||||
Array<Ast_Call_Item *> instantiation_call_items;
|
||||
Array<Ast_Decl *> polymorph_parameters;
|
||||
Array<Ast_Decl *> polymorphs; // instantiated polymorphs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user