summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r--src/expand/mod.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index ba8f6977..ad141a46 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -501,6 +501,10 @@ struct CExpandExpr:
this->visit_nodelete(node, node.m_value);
Expand_Type(crate, modstack, this->cur_mod(), node.m_type);
}
+ void visit(::AST::ExprNode_TypeAnnotation& node) override {
+ this->visit_nodelete(node, node.m_value);
+ Expand_Type(crate, modstack, this->cur_mod(), node.m_type);
+ }
void visit(::AST::ExprNode_BinOp& node) override {
this->visit_nodelete(node, node.m_left);
this->visit_nodelete(node, node.m_right);