typeclasses can have required methods and required functions

This commit is contained in:
ProgramSnail 2023-05-13 16:14:02 +03:00
parent 562541087e
commit 4882d458f8
11 changed files with 113 additions and 43 deletions

View file

@ -355,7 +355,8 @@ struct TypeclassDefinitionStatement {
BaseNode base;
std::unique_ptr<TypeDefinition> definition;
std::vector<std::unique_ptr<FunctionDeclaration>> requirements;
std::vector<std::unique_ptr<FunctionDeclaration>> method_requirements;
std::vector<std::unique_ptr<FunctionDeclaration>> function_requirements;
utils::IdType typeclass_id_;
};