mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
fixes, build_visitor TupleType and VariantType fix
This commit is contained in:
parent
692f7ea3ec
commit
b723fd6a65
12 changed files with 321 additions and 241 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue