type_check_visitor FindSubExpressionMethodAndUpdate fixes, fixes

This commit is contained in:
ProgramSnail 2023-05-17 11:51:14 +03:00
parent a90bcb5d92
commit 868d514bcc
6 changed files with 79 additions and 49 deletions

View file

@ -17,8 +17,8 @@ bool AbstractType::Same(const AbstractType& type) const {
}
bool AbstractType::operator<(const AbstractType& type) const {
for (auto& typeclass : requirements_) {
if (type.requirements_.count(typeclass) == 0) {
for (auto& graph_id : requirement_graph_ids_) {
if (type.requirement_graph_ids_.count(graph_id) == 0) {
return false;
}
}