diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
| commit | bd44c9eaef1f4dcbbd98d4489885566b6c7e5138 (patch) | |
| tree | d664ec481b99e04386c47526b56085320edd9cde /node/ExprNode.cc | |
| parent | fd21f31e654a97027799f0fdf3518fd639415121 (diff) | |
support for type alias
Diffstat (limited to 'node/ExprNode.cc')
| -rw-r--r-- | node/ExprNode.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/ExprNode.cc b/node/ExprNode.cc index 2dce99f..e15d39e 100644 --- a/node/ExprNode.cc +++ b/node/ExprNode.cc @@ -157,7 +157,7 @@ IdentifierNode::IdentifierNode(Context* context, const std::string& name) , name_(name) {} Value IdentifierNode::CodeGen() { - Variable var = context_->GetCurrentScope()->Find(name_); + Variable var = context_->GetCurrentScope()->FindVariable(name_); type_ = std::get<0>(var); return std::get<1>(var); } |
