mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
fixes, part of execute_visitor
This commit is contained in:
parent
802b736e15
commit
6e487c8fd9
6 changed files with 79 additions and 47 deletions
|
|
@ -319,11 +319,11 @@ public:
|
|||
return types_.at(type_id).second;
|
||||
}
|
||||
|
||||
bool EqualTypes(utils::IdType first_type, utils::IdType second_type) {
|
||||
bool EqualValues(utils::IdType first_type, utils::IdType second_type) {
|
||||
return GetAnyValue(first_type)->Same(*GetAnyValue(second_type));
|
||||
}
|
||||
|
||||
bool AddTypeRequirement(utils::IdType type, utils::IdType requrement) {
|
||||
bool AddValueRequirement(utils::IdType type, utils::IdType requrement) {
|
||||
return *GetAnyValue(requrement) < *GetAnyValue(type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue