fixes, build_visitor TupleType and VariantType fix

This commit is contained in:
ProgramSnail 2023-05-17 17:57:56 +03:00
parent 692f7ea3ec
commit b723fd6a65
12 changed files with 321 additions and 241 deletions

View file

@ -132,7 +132,7 @@ private:
return true;
}
if (variables_.count(name) > 0) {
if (variables_.count(name) != 0) {
return false;
}
variables_[name] = value_id;
@ -140,7 +140,7 @@ private:
}
bool DefineLocalType(const std::string& name, utils::IdType type_id) {
if (local_types_.count(name) > 0) {
if (local_types_.count(name) != 0) {
return false;
}
local_types_[name] = type_id;