typecheck for some expressions

This commit is contained in:
ProgramSnail 2024-02-16 00:47:40 +03:00
parent 070b08dba4
commit 61fa3a19a0
3 changed files with 78 additions and 52 deletions

View file

@ -446,7 +446,7 @@ public:
return TypeCheckResult();
}
explicit TypeCheckResult(std::optional<TypeProxy> type) : type_(type) {}
explicit TypeCheckResult(nodes::TypeProxy type) : type_(type) {}
//
@ -478,7 +478,7 @@ private:
TypeCheckResult() = default;
private:
std::optional<TypeProxy> type_;
nodes::MaybeTypeProxy type_;
};
} // namespace nodes