mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-23 23:38:45 +00:00
typecheck for some expressions
This commit is contained in:
parent
070b08dba4
commit
61fa3a19a0
3 changed files with 78 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue