Type check constructors.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace lily {
|
||||
enum reserved_types {
|
||||
@@ -34,7 +35,7 @@ namespace lily {
|
||||
};
|
||||
|
||||
int type_id;
|
||||
std::vector<std::unique_ptr<constructor>> constructors;
|
||||
std::map<std::string, std::unique_ptr<constructor>> constructors;
|
||||
|
||||
type_data(int id) : type_id(id) {}
|
||||
constructor* create_constructor(const std::string& name, std::vector<type*>&& params);
|
||||
|
||||
Reference in New Issue
Block a user