mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-08 07:58:44 +00:00
type_check_visitor FindSubExpressionMethodAndUpdate fixes, fixes
This commit is contained in:
parent
a90bcb5d92
commit
868d514bcc
6 changed files with 79 additions and 49 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue